Source for file upload.php

Documentation is available at upload.php

  1. <?php
  2. // Uploadify v1.6.2
  3. // Copyright (C) 2009 by Ronnie Garcia
  4. // Co-developed by Travis Nickels
  5. if (!empty($_FILES)) {
  6.     $tempFile $_FILES['Filedata']['tmp_name'];
  7.     $targetPath $_SERVER['DOCUMENT_ROOT'$_GET['folder''/';
  8.     $targetFile =  str_replace('//','/',$targetPath$_FILES['Filedata']['name'];
  9.     
  10.     // Uncomment the following line if you want to make the directory if it doesn't exist
  11.     // mkdir(str_replace('//','/',$targetPath), 0755, true);
  12.     
  13.     move_uploaded_file($tempFile,$targetFile);
  14. }
  15. echo "1";
  16. ?>

Documentation generated on Fri, 17 Jul 2009 11:02:35 +0100 by phpDocumentor 1.4.0