Advertisement
Guest User

Untitled

a guest
Sep 28th, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. <?php
  2. // index.php
  3. /*
  4. * jQuery File Upload Plugin PHP Example
  5. * https://github.com/blueimp/jQuery-File-Upload
  6. *
  7. * Copyright 2010, Sebastian Tschan
  8. * https://blueimp.net
  9. *
  10. * Licensed under the MIT license:
  11. * http://www.opensource.org/licenses/MIT
  12. */
  13. // using jQuery-File-Upload version: 9.12.5
  14.  
  15. error_reporting(E_ALL | E_STRICT);
  16.  
  17. // UploadHandler.php and index.php remain in the default location
  18. // jQuery-File-Upload_root/server/php/
  19.  
  20. require('UploadHandler.php');
  21.  
  22. define('DIR_DOWNLOAD', '../../_uploads/'); // the directory is in jQuery-File-Upload_root/_uploads
  23.  
  24. define('HTTP_SERVER', 'http://localhost/jQuery-File-Upload-9.12.5/_uploads/');
  25.  
  26. $upload_handler = new UploadHandler(
  27. array(
  28. 'upload_dir' => DIR_DOWNLOAD,
  29. 'upload_url' => HTTP_SERVER,
  30. )
  31. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement