Skip to content

feat: add secure file browser, download, and delete management#20

Open
roninscript30 wants to merge 1 commit into
ANURA4G:mainfrom
roninscript30:feat/file-download-ux-presigned-get
Open

feat: add secure file browser, download, and delete management#20
roninscript30 wants to merge 1 commit into
ANURA4G:mainfrom
roninscript30:feat/file-download-ux-presigned-get

Conversation

@roninscript30
Copy link
Copy Markdown
Collaborator

🚀 Summary

This PR implements core file lifecycle features by adding:

These changes complete the end-to-end file management experience in the system.


✅ Changes

🔽 File Download UX (#7)

  • Added file listing UI with download action
  • Integrated backend get-file-url endpoint
  • Implemented presigned URL-based download flow
  • Added loading and error handling states
  • Handled URL expiry with retry mechanism

🗑️ File Deletion Flow (#10)

  • Added DELETE endpoint: /api/upload/file/{file_id}
  • Implemented S3 object deletion using AWS SDK
  • Removed/soft-deleted file metadata from MongoDB
  • Added delete button with confirmation UI
  • Updated frontend state after deletion

🧪 Testing

  • ✅ Upload → Download → Works correctly
  • ✅ Upload → Delete → Removed from UI and S3
  • ✅ Refresh → Deleted files not present
  • ✅ Error handling for failed API calls

🎯 Impact

  • Completes file lifecycle: Upload → View → Download → Delete
  • Improves usability and demo readiness
  • Aligns with core project requirements

Closes #7
Closes #10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add file deletion endpoint and flow (S3 + history cleanup) Add file download/retrieval UX for presigned GET flow

1 participant