Core Boxx – Resumable Upload Module

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.

 

DOWNLOAD LINKS

Download Core Boxx Resumable Upload Module | GitHubSource Forge

 

LICENSE

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

This module uses FlowJS and FlowPHPServer, both are not included in the zip file.

  • 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.
    • Run composer require flowjs/flow-php-server, Composer will automatically download the latest version into the vendor folder.
  • That’s all. Launch upload.html and 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…

 

QUICK REFERENCE

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

 

UPLOAD FOLDERS

Change $upTemp and $upDest in api/API-upload.php to set your own upload path.

Leave a Comment

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