Skip to content

teynon/jQuery-File-Upload

 
 

Repository files navigation

Setup

To set up APC for PHP, first ensure that you have APC installed on your PHP server.

A resource for setting up PHP APC can be found at http://www.debian-administration.org/articles/574

Remi provides a nice script for testing your APC setup.

APC Plugin Setup

  • The APC plugin only takes effect when the browser does not support file upload progress.

To enable APC, ensure you have the js/jquery.fileupload-apc.js included on your page and simply add the option in the widget initialization.

$('#fileupload').fileupload({
    url: 'server/php/',
    apc: true
});

You can also optionally configure the following settings:

$('#fileupload').fileupload({
    url: 'server/php/',
    apc: true,
    apcTimeout: 2000, // Set the time in between progress updates in milliseconds
    apcVarname: "MY_APC_UPLOAD_PROGRESS", // Use only if you have changed apc.rfc1867_name (http://www.php.net/manual/en/apc.configuration.php#ini.apc.rfc1867-name)
    apcPrefix: "myprefix_" // Use only if you have changed apc.rfc1867_prefix (http://www.php.net/manual/en/apc.configuration.php#ini.apc.rfc1867-prefix)
});

About APC

PHP APC is a PECL extension that enables caching of files. With the correct runtime configuration, it can cache file information during file uploads and provide information about those files such as current size, total size, and bitrate.

License

Released under the MIT license.

About

This fork provides APC support for blueimp's jQuery-File-Upload.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 79.5%
  • PHP 15.2%
  • Go 3.0%
  • Python 2.3%