Skip to content

chochkov/progressive-uploader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Technologies:
======
Ruby, Sinatra, Sqlite, Ajax


Description:
====== 
A file uploader, operating hidden from the user, letting them interact with the rest of the site/form while huge uploads are being carried out in the background. Shows real time upload progress in percentage and uses Ajax for refreshing the page.


Usage:
======
It relies on the Apache upload progress module (alternatives to this exist of course) and proper vhost config

<Location />
    # enable tracking uploads in /
    TrackUploads On
</Location>

<Location /progress>
    # enable upload progress reports in /progress
    ReportUploads On
</Location>

so that a GET request with X-Progress-ID header would return a json formated progress report like shown here http://github.com/drogus/apache-upload-progress-module for that ID


TODO:
======
1. the Form X-Progress-ID parameter needs to be changed to another one after a subsequent upload has been carried out and the title box needs to be cleared as well. This way it will be possible to upload file after file without reloading the page and yet see all updates.

About

developer challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published