This is a resumable upload module for Core Boxx, use it to help you deal with large file uploads.
TABLE OF CONTENTS
|Download & Notes||Quick Reference|
DOWNLOAD & NOTES
First, here are the download links and a quick “setup guide” for the impatient folks who don’t have the patience to read through everything.
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.
INSTALLATION & REQUIREMENTS
- FlowJS can be easily loaded off the CDN – Just find grab the latest version and put it into your upload page.
- You need to download FlowPHP yourself, the easiest way is to:
- Install Composer.
- Open the command prompt, navigate to your project folder.
composer require flowjs/flow-php-server, Composer will automatically download the latest version into the
- That’s all. Launch
upload.htmland test it out.
MORE DEVELOPMENT NOTES
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 upload 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…
This section is a quick walkthrough of the general module structures.
UPLOAD ENDPOINT ONLY
Yes, there are no library functions, only the endpoint.
- This module adds a resumable upload endpoint at
- Also, you can send
$_POST['confirm'] = "KEEP-CALM-AND-FLUSH"to
http://yoursite.com/api/upload/flush/to clean out the upload temp folder.
api/API-upload.php to set your own upload path.