Core Boxx – Resumable Upload Module

TABLE OF CONTENTS

 

DOWNLOAD & INSTALLATION

First, the download links for the module, and also “installation instructions”.

 

LICENSE & DOWNLOAD

GitHubSource Forge

Core Boxx is released under the MIT License. You are free to use it for personal and commercial projects, and modify it as you see fit. On the condition that 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 & CREDITS

  • Copy/unzip this module into your existing Core Boxx project folder.
  • Access http://your-site.com/upload for the demo.

This module is created with:

 

SORRY FOR THE ADS...

But someone has to pay the bills, and sponsors are paying for it. I insist on not turning Code Boxx into a "paid scripts" business, and I don't "block people with Adblock". Every little bit of support helps.

Buy Me A Coffee Code Boxx eBooks

 

FILES LIST

LIBRARIES

  • lib/flow/ The FlowPHP library.
  • lib/LIB-Upload.php Resumable upload library.

API

  • lib/API-upload.php Resumable upload API endpoint.

ASSETS & PAGES

  • pages/PAGE-upload.php Demo upload page.
  • assets/PAGE-upload.js Demo upload Javascript.
  • assets/flow.min.js FlowJS

 

DEVELOPMENT NOTES

  • Change $upTemp and $upDest in lib/LIB-Upload.php to set your own upload path. If you want, you can add these folders into CORE-Config.php.
  • The module is extremely basic, 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 only, give each user a separate folder, set an upload quota, limit file types, protect the flush function, etc…

 

 

LIBRARY REFERENCE

Lastly, the list of library functions and API endpoints.

 

UPLOAD LIBRARY FUNCTIONS

recv ()

Receive an upload.

flush ()

Flush the entire temp upload folder.

 

UPLOAD API FUNCTIONS

api/upload/recv/

Flow PHP upload endpoint.

api/upload/flush/

Flush out all the temp upload files.

 

Leave a Comment

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