Skip to content

Conversation

@semohr
Copy link
Collaborator

@semohr semohr commented Jun 14, 2025

Adds file upload capabilities to our inbox view.

ToDos:

  • Frontend component drag/drop files into inbox
  • Action to trigger upload without drag and drop
  • Backend upload endpoint
  • Currently, the PR breaks the dev setup - errors on dynamic reloads
  • docs (not the limit about folders, ssl required)
  • error handling?
  • test for backend route

@pSpitzner
Copy link
Owner

#102

Really loving this!
While we are at it, lets add a simple info when dragging in a folder (since thats likely a common use-case):

  • number music files inside
  • number non-music files
  • number folders

@semohr
Copy link
Collaborator Author

semohr commented Jun 15, 2025

Have never worked with directories but seems doable.

Side note: All file access apis are only available in the secure context (https).

@semohr semohr linked an issue Jun 15, 2025 that may be closed by this pull request
@semohr semohr mentioned this pull request Oct 10, 2025
pSpitzner pushed a commit that referenced this pull request Oct 13, 2025
* Added a box shadow to action buttons.

* Duration component edge case.
@pSpitzner pSpitzner closed this Oct 14, 2025
@pSpitzner pSpitzner deleted the fileUpload branch October 14, 2025 16:57
@semohr semohr restored the fileUpload branch October 14, 2025 17:10
@pSpitzner pSpitzner reopened this Oct 14, 2025
@pSpitzner pSpitzner added this to the 2.0.0 milestone Oct 19, 2025
semohr and others added 15 commits December 17, 2025 20:09
…iles

via drag and drop into the browser window or by manual selection.
tests now run through, but it still seems that our custom exceptions do not
 propagate through the xhr (invalid targetdir does not raise in frontend nor console log)
…dling.

TODO: mobile, use dialog, folder creation for multiple files, snackbar.

Co-Authored-By: semohr <[email protected]>
- Added generic useDrag hook
- Refactored upload into multiple files

Co-authored-by: pSpitzner <[email protected]>
Other dialog parts still need some work but basic functions
are working.

Co-authored-by: pSpitzner <[email protected]>
- dialog styling
- enabled dialog dropzone
- excluding .git from repo permission fix

a few bugs around uploading:
- we can add the same file multiple times
- we can add files after the upload finished :P
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.

FR: Drag Files into Inbox view to upload

3 participants