Core Boxx – Resumable Upload Module

 

 

SECTION A

DOWNLOAD & LICENSE

Download Core Boxx Resumable Upload ModuleSource Forge

Core Boxx is released under the MIT License. You are free to use it for your own personal and commercial projects, modify it as you see fit. On the condition that there the software is provided “as-is”. There are no warranties provided and “no strings attached”. Code Boxx and the authors are not liable for any claims, damages, or liabilities.

 

 

SECTION B

INSTALLATION & REQUIREMENTS

This module uses FlowJS and FlowPHPServer – Both are not included in the zip file. FlowJS is easily loaded off the CDN, but you need to download FlowPHP yourself. The easiest way is to:

  • Install Composer.
  • Open the command prompt, navigate to your project folder.
  • Run composer require flowjs/flow-php-server.

That’s all, Composer will automatically download the latest version into the vendor folder. Launch upload.html and test it out – You may need to change target: 'api/upload/recv/' if the URL fails to resolve.

 

SECTION C

MORE NOTES

This module adds a resumable upload endpoint at http://yoursite.com/api/upload/recv/. Also, you can send $_POST['confirm'] = "KEEP-CALM-AND-FLUSH" to  http://yoursite.com/api/upload/flush/ to clean out the upload temp folder. Yes, there are no library functions, only the endpoint.

The module is extremely basic out-of-the-box, with code that is pretty much copy-and-pasted from the FlowPHP documentation… Do your own checks and processes! Limit uploads to registered users, give each user a separate folder, set an upload quota, limit file types, protect the flush function, etc…

Leave a Comment

Your email address will not be published. Required fields are marked *