Uploading of files


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $uploadedImage = new Upload($_FILES['uploadImage']);
  2.  
  3. if ($uploadedImage->uploaded) {
  4. $uploadedImage->Process('myuploads');
  5. if ($uploadedImage->processed) {
  6. echo 'file has been uploaded';
  7. }
  8. }

URL: http://www.verot.net/php_class_upload.htm

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.