File Upload
Click to choose a file
| #ID | File Name | Extension | File Size | Download | Delete |
|---|
Requirement
What needs to be done
- Show a file upload widget and an Upload button.
- On Upload, store the file in the database.
- Below the widget, show a table of uploaded files: #ID, File Name, Extension, File Size, Download, Delete.
- Download downloads the file.
- Delete shows a confirmation prompt, then removes the file.
Development hint: Store the file in an Entity with a Binary Data attribute, plus FileName, Extension and FileSize attributes. The Upload widget gives you the binary and the filename. Use a Create action on Upload, a Download action to serve the binary, and a Delete action after confirmation.