FORGEBOX Enterprise 🚀 - Take your ColdFusion (CFML) Development to Modern Times! Learn More...

CFWheels File Bin

v0.1.0 Public

CFWheels File Bin

Description

CFWheels Plugin to simplify file operations by providing a general /bin for file uploads and nested bins.

Usage

    // sample function for uploading a file parameter
    /**
     * filter to handle file uploading
     * 
     * [section: Controller helpers]
     * [category: Controller Functions]
     * 
     * @file
     */
    private string function uploadfileparam() {
        try {
            // initialize a bin using the default directory(no args)
            // than upload the file parameter
            params.filename = bin().upload(params.file);
        } catch (any e) {
            resp.errors = e.message;
            resp.status = e.errorCode NEQ '' ? e.errorCode : 500;
            sendResponse();
        } 
    }

Allowed MIME Types

Allowed MIME Types are defined in mimetypes.cfm. You can override this by modifying the file directly, are passing in your defined mime types as a bin() arg.

Bin Directory

The plugin's first init call will create the files/bin directory if it doesn't already exist.

Here are all the versions for this package. Please note that you can leverage CommandBox package versioning to install any package you like. Please refer to our managing package version guide for more information.

Version Created Last Update Published By Stable Actions
Current
0.1.0 Mar 04 2019 02:31 PM Mar 04 2019 02:31 PM

 

  •   Brandon Shea
  • Published
  • 0.1.0 is the latest of 1 release(s)
    Published
  • Published on Mar 04 2019 02:31 PM
No collaborators yet.
 
  • Mar 04 2019 02:31 PM
  • Mar 04 2019 02:31 PM
  • 265
  • 0
  • 5