Attachment field

Would it be possible to enhance attachment columns to show only the latest file by default, with version history accessible on demand (similar to NextCloud/SharePoint). Attachment columns become cluttered when multiple versions of files are uploaded over time, making it hard to identify the current version.

Proposed Solution

  • Show only the most recently uploaded file in the column

  • Determine “latest” by upload timestamp, not filename

  • Keep interface clean and compact

  • Column setting: “Show latest only” vs “Show all” (current behavior)

  • Optional version retention limits

Version History

  • Store all previous versions in the background

  • Provide access via dropdown showing:

    • Upload date/time

    • Original filename

    • File size

  • Allow download or restore of previous versions

UI Concept

Current View:
┌─────────────────────────┐
:page_facing_up: report_v3.pdf │
:one_o_clock: 2 versions available │
└─────────────────────────┘

History View:
:page_facing_up: report_v3.pdf (Current)
├── Dec 15, 2024 2:30 PM
:page_facing_up: report_v2.pdf
├── Dec 10, 2024 4:15 PM
:page_facing_up: initial_report.pdf
├── Dec 5, 2024 10:00 AM

This would significantly improve document management in nocodb while maintaining backward compatibility and provide the following benefits:

  • Cleaner column display

  • Clear current vs. historical file distinction

  • Familiar version control UX

  • Better document management workflow

Thoughts?

One quick workaround that I can think of - create another attachment field for displaying final file. On every update to source attachment field, a webhook will be triggered (can be conditional to identify this scenario) – this will run a script that - for that record & source attachment field - replaces the file in our new “for display” attachment field

A feature request is created here as well