Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // index.php
- /*
- * jQuery File Upload Plugin PHP Example
- * https://github.com/blueimp/jQuery-File-Upload
- *
- * Copyright 2010, Sebastian Tschan
- * https://blueimp.net
- *
- * Licensed under the MIT license:
- * http://www.opensource.org/licenses/MIT
- */
- // using jQuery-File-Upload version: 9.12.5
- error_reporting(E_ALL | E_STRICT);
- // UploadHandler.php and index.php remain in the default location
- // jQuery-File-Upload_root/server/php/
- require('UploadHandler.php');
- define('DIR_DOWNLOAD', '../../_uploads/'); // the directory is in jQuery-File-Upload_root/_uploads
- define('HTTP_SERVER', 'http://localhost/jQuery-File-Upload-9.12.5/_uploads/');
- $upload_handler = new UploadHandler(
- array(
- 'upload_dir' => DIR_DOWNLOAD,
- 'upload_url' => HTTP_SERVER,
- )
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement