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.
Ive worked with this class succssfully on an Linux server, but ive transfered my site to a windows server and i get the following error when i run the class:error : Destination directory can't be made writeable. Can't carry on a process
Ive asked my admininstrator to setup full control access, but the problem persists. Any ideas how to resolve this, does the class work in windows servers?
Ive asked my admininstrator to setup full control access, but the problem persists. Any ideas how to resolve this, does the class work in windows servers?
cheers
andrew bingham
UOT lecturer
The class should run on IIS, although I haven't tested it. Can you copy here the results of $foo->log?
Maybe it is a problem of path separator. Which version of the class do you use?
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