Renewable file download (preferably in Ruby on Rails)

This is a rather complicated topic in all respects. I am creating a website that requires users to download large (several GB). What is the best way to allow users to upload a file to a website and allow the file to resume downloading if it does not work? What is the way to write this on rails?

Any ideas were greatly appreciated.

Max.

+6
scripting file ruby-on-rails file-upload
source share
3 answers

No browsers support resuming downloads.

From my Googling, Flash doesn't look either.

Although I don’t know enough about Java to say that this is not possible, there do not seem to be any pre-loaded delivery solutions that support this method.

In short, you will need to encode your own solution without a browser / plugin. If this is not possible, you may need to opt out of this feature. Sorry!

EDIT: Actually, after using a better search query, here the Java solution seems to support this by splitting the source file: JumpLoader . Below is the documentation page to resume downloading . Good luck (You will notice that there are purchase links - this is only for the unencrypted version and for the source code. You can use the version of JumpLoader brands for free.)

+4
source share

Browser support is not supported; in fact, this cannot be done via HTTP.

To do this, you need to write your own java applet , ActiveX or WPF browser application . Any of this will talk to a TCP server listening on the server side to achieve pausing and resuming file downloads.

+1
source share

Six years since you asked, but for future viewers, check out ResumableJS . It uses the HTML5 file API to break downloads into pieces. They also include an example RoR for accepting downloads.

+1
source share

All Articles