class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
I was running 0.19 on a PHP4 installation. When switching to PHP 5.2.4, it no longer worked and I got above error message. Upgrading class.upload.php to 0.25 solved the issue.
i use class version 0.2.
On Apache Windows work wery well, but on Linux give me this error...
could you say me where is the problem?
Thank you
In any case, I can't say much without the log file, or your code.
What does the log print?
error : No source file. Can't carry on a process/tmp/phpmHXz0q - new file name body : 1159530817_thumb - file name safe format - destination variables file_dst_path : /usr/virtual/webs/pastirik/galerie/image/ file_dst_name_body : 1159530817_thumb file_dst_name_ext : jpg - image operation, change extension for conversion type - checking for auto_rename file_dst_name : 1159530817_thumb.jpg file_dst_pathname : /usr/virtual/webs/pastirik/galerie/image/1159530817_thumb.jpg - 1159530817_thumb.jpg doesn't exist alreadyi upload new version 0.20 but same ...
Apart from that, does it work for other files? Or when you are not doing multiple uploads?
Are you in a chroot environment? What server are you running the class on? Which version of PHP?
The script works for smaller images JPG.
300kb ish.
However when I upload JPG's over 1mb I get the Error: No source file
I used the script that came with the class and i get the same error.
My php.ini file has been changed to:
The log file says:
source is an uploaded file - upload OK - file name OK - source variables file_src_name : DSCF0532.JPG file_src_name_body : DSCF0532 file_src_name_ext : jpg file_src_pathname : /tmp/php5FPsJI file_src_mime : image/jpeg file_src_size : 1575689 (max= 104857600) file_src_error : 0 process file to ./test/ - file size OK - file mime OK : image/jpeg - file name safe format - destination variables file_dst_path : ./test/ file_dst_name_body : DSCF0532 file_dst_name_ext : jpg - image operation, keep extension - checking for auto_rename auto_rename to DSCF0532_4.jpg - destination file details file_dst_name : DSCF0532_4.jpg file_dst_pathname : ./test/DSCF0532_4.jpg - DSCF0532_4.jpg doesn't exist already - image resizing or conversion wantedTry to raise your local memory to 20M, 32M or more.
You can add this in your script:
Or in a .htaccess file:
Cheers
Raz
in the php.ini file
This didnt work.
However I upgraded my version of php to version 5.1.6
and it worked!! :-D
Thank you for a great class