Simple File Uploader is a file uploader written using HTML5 and Node.js. It can upload both to a local directory on the server or to an AWS S3 server.
Clearly, it is not a revolutionary file uploader that will change the way mankind upload their files. Seeing that many people are actually interested in both HTML5 File API and Node.js, decided to write a simple file uploader application as many of the examples out there are not clear enough for beginners. Hope this helps!
- Clone the repository or download and extract the files.
- Install Node.js if you haven't already.
- Go to the directory where index.js etc. are.
- Edit config.js if you wish to change the upload directory or the port number.
- Run the application using
node index.js
- Go to
http://<IP_ADDRESS>:<PORT>
where<IP_ADDRESS>
is the IP address of the machine where the application is running and the<PORT>
is the port number defined inconfig.js
which is8000
by default. - Drag and drop files to the marked area to upload the files to the
upload_dir
defined inconfig.js
.
To use with AWS S3:
- Install knox using
npm install knox
. - Edit config.js to fill in the values for the keys
key
,secret
andbucket
, and replace the last line withexports.s3_enabled = true;
.
This application is released under the MIT License. See the LICENSE
file for details.