A small web application to accept file uploads......
.........
.... allow people to upload files to my file server using only a web browser (i.e. so users don't have to install a SFTP client or any other software).
Each file will be placed in it's own subdirectory with the date & time of upload as the directory name, so you can easily find your files. The idea is that after someone has uploaded a file, you would go grab it and move it somewhere else, so nothing is left in the upload directory long term.
...... forward port 8000 .... map /opt/file_upload/data mapped to wherever you want the files to be stored
- Documentation
- Docker image
- Get it running
- Usage instructions
- Get it working with a smaller image like alpine
- Prevent "invalid cross-device link" error:
- Get it to work without the
set_permissions
call
- Improve
index.html
:- Make it pretty
- Allow files to be dragged and dropped
- Show acceptable file extensions
- Check the file extension locally in the browser before upload so user doesn't have to wait for upload to complete on a file that will be rejected anyway
- Progress bar
- Authentication
- Replace synchronous functions with async equivalents:
-
std::fs::create_dir_all
- Creating and writing to
Original filename.txt
-
- favicon
- Time zone - https://stackoverflow.com/questions/57607381/how-do-i-change-timezone-in-a-docker-container
- Sends a message to Slack when a file is uploaded
Licensed under either of the following:
- Apache License, Version 2.0 (LICENSE-APACHE or http://apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)