Giter VIP home page Giter VIP logo

bigupload's Introduction


BigUpload

version 1.2
Created by: Sean Thielen [email protected]
BigUpload: Uploading really big files in the browser


BigUpload is a tool for handling large file uploads (tested up to 2GB) through the browser.

Screenshot


It uses the HTML5 FileReader library to split large files into manageable chunks, and then sends these chunks to the server one at a time using an XmlHttpRequest.

The php script then pieces these chunks together into one large file.

Because the chunks are all the same size, it is easy to calculate an accurate progress bar and a fairly accurate time remaining variable.

This tool is capable of handling file uploads of up to 2GB in size, without the need to tweak the max_upload and timeout variables on your httpd.

This tool only works on Chrome and Firefox, but falls back to a normal file upload form on other browsers.

If you want to deploy this as-is, the variables you need to worry about are in the top of

  • js/bigUpload.js
  • inc/bigUpload.php

And you need to be sure to make /BigUpload/files and /BigUpload/files/tmp writeable

Please feel free to contribute and use this in your projects!


v 1.2

  • Cleaned up the code quite a lot
  • Added pause/resume functionality
  • Added fallback for unsupported browsers

v 1.0.1

  • Added time remaining calculator
  • Response from php script is now a json object, allowing for error processing
  • Minor script changes and bugfixes
  • Better comments

v 1.0.0

  • Initial version

bigupload's People

Contributors

sthielen 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.