Skip to content

fix: add file upload action#15

Open
santoslgl01-web wants to merge 1 commit intoDocport:masterfrom
santoslgl01-web:fix/issue-7-file-upload
Open

fix: add file upload action#15
santoslgl01-web wants to merge 1 commit intoDocport:masterfrom
santoslgl01-web:fix/issue-7-file-upload

Conversation

@santoslgl01-web
Copy link
Copy Markdown

Summary

Fixes #7

Adds the missing upload action for the existing file manager UI:

  • wires the existing Upload button to a native file picker
  • reads the selected file with FileReader
  • creates a new file model in the current collection and saves it through the existing file sync API
  • refreshes the listing after a successful upload

Testing

  • Compiled src/documents/scripts/views/app.js.coffee with CoffeeScript 1.12.7
  • Ran node --check on the compiled JavaScript
  • Ran git diff --check

Note: the project uses very old DocPad/Node-era dependencies and does not define a test script beyond the app start command, so I performed syntax/compilation and whitespace checks for this focused UI change.

@santoslgl01-web
Copy link
Copy Markdown
Author

Hi! Just checking in — please let me know if any changes are needed. Happy to update the PR. Thanks!

1 similar comment
@santoslgl01-web
Copy link
Copy Markdown
Author

Hi! Just checking in — please let me know if any changes are needed. Happy to update the PR. Thanks!

@santoslgl01-web
Copy link
Copy Markdown
Author

Hi! Just checking in \u2014 please let me know if any changes are needed. Happy to update the PR. Thanks! \ud83d\ude42

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.

Upload files [$50]

1 participant