Core Boxx – Resumable Upload Module

TABLE OF CONTENTS

 

DOWNLOAD & INSTALLATION

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

 

LICENSE & DOWNLOAD

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.

Download Core Boxx Resumable Upload Module | GitHubSource Forge

 

INSTALLATION & CREDITS

There is no database for this module, just unzip it into your existing Core Boxx project folder. This module is created with:

 

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 *