Giter Club home page Giter Club logo

simple-file-sharer's Introduction

Simple File Sharer

Simple File Sharer is a file uploader written using HTML5 and Node.js.

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. Hope it's useful for someone else than me.

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.
  8. Copy the url from the dialog and send it to friends and enemies.

License

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

simple-file-sharer's People

Contributors

codybonney avatar jakehedman avatar merty avatar the-louie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

simple-file-sharer's Issues

Log to syslog

The logging should be to syslog instead of stdout.

server crashes on non json data

Handling request for /upload from 172.21.20.145

undefined:1
Domain/IP/URL,CampaignFacebook Appppa.fb.me,Facebook App,Twitter Movelite88__s
^
SyntaxError: Unexpected token D
at Object.parse (native)
at serveUpload (/home/louie/lab/simple-file-uploader/handlers.js:36:34)
at route (/home/louie/lab/simple-file-uploader/router.js:26:37)
at IncomingMessage. (/home/louie/lab/simple-file-uploader/server.js:18:4)
at IncomingMessage.EventEmitter.emit (events.js:92:17)
at _stream_readable.js:883:14
at process._tickCallback (node.js:415:13)

Allow for multiple files per link

Add a function for linking to a set of files. This would group the current files in the upload list with an ID and that ID could be used to link to.
For this function to be really usefull an option for deleting files in the list should be implemented at the same time.

crashes

When the file size is over 1 GB crashes.

enable http/2

Instead of http start using http/2 for everything.

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.