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.
more info about the class
See all posts See thread Reply
$foo->process('../propertyImages');
$foo->process('propertyImages');
$foo->process('propertyImages\\');
Here's my log output:
- upload OK
- file name OK
- source variables
file_src_name : m_9c8dd4acb568ac9355cbf67d6a89ffce.jpg
file_src_name_body : m_9c8dd4acb568ac9355cbf67d6a89ffce
file_src_name_ext : jpg
file_src_pathname : C:\WINDOWS\TEMP\php1C.tmp
file_src_mime : image/jpeg
file_src_size : 6517 (max= 16777216)
file_src_error : 0
process file to ../propertyImages\
- file size OK
- file mime OK : image/jpeg
- new file name body : propertyThumb5
- new file name ext : jpg
- file name safe format
- destination variables
file_dst_path : ../propertyImages\
file_dst_name_body : propertyThumb5
file_dst_name_ext : jpg
- image operation, keep extension
- checking for auto_rename
- destination file details
file_dst_name : propertyThumb5.jpg
file_dst_pathname : ../propertyImages\propertyThumb5.jpg
- propertyThumb5.jpg doesn't exist already
- ../propertyImages\ is not writeable. Attempting chmod: failed
Im off teaching now, but thanks so much for looking at this :)
andrew
I don't use Windows, so I can't really test it. But you seem to do this:
What does the class do it you instead write the following?
or even