Giter Site home page Giter Site logo

chenjie26 / simple-file-uploader Goto Github PK

View Code? Open in Web Editor NEW

This project forked from merty/simple-file-uploader

0.0 2.0 0.0 187 KB

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.

License: MIT License

simple-file-uploader's Introduction

Simple File Uploader

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!

Usage

  1. Clone the repository or download and extract the files.
  2. Install Node.js if you haven't already.
  3. Go to the directory where index.js etc. are.
  4. Edit config.js if you wish to change the upload directory or the port number.
  5. Run the application using node index.js
  6. 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 in config.js which is 8000 by default.
  7. Drag and drop files to the marked area to upload the files to the upload_dir defined in config.js.

To use with AWS S3:

  1. Install knox using npm install knox.
  2. Edit config.js to fill in the values for the keys key, secret and bucket, and replace the last line with exports.s3_enabled = true;.

License

This application is released under the MIT License. See the LICENSE file for details.

simple-file-uploader's People

Contributors

merty avatar

Watchers

James Cloos avatar jackson chen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.