Cannot upload images with IIS/Windows 2003 server
I have PhotoPost Classifieds up and running after some trial and error (it did not like MySQL being in strict mode) on Windows 2003 server with IIS as the web server. The only problem that I am having is with image uploads. I get the following error message:
Warning: unlink(d:/ads/data/2/thumbs/vistaprem_xl.jpg) [function.unlink]: No such file or directory in D:\ads\image-inc.php on line 376
This is the command being passed to the mogrify function of ImageMagick:
"d:\im\mogrify.exe" -quality 70 -geometry 250x250 d:/ads/data/2/vistaprem_xl.jpg
The file that needs to be resized is in the :\ads\data\2\large\ folder, not in the location being passed to mogrify. I assume that is what is causing both errors - the mogrify command can't find the image to make the thumbnail, and then no thumbnail exists.
In Global Options, the full path to the data directory is set to d:/ads/data/ - it will not let me use backslashes, it changes them to forward slashes when I save.
The permissions are correct on the folders, and the image is being uploaded - I followed along in the code and I can't figure out how it is getting into the large folder, and why the mogrify command is being sent the wrong path (and also why it insists on using forward slashes).
Please help - I am anxious to get this up and running.
PS - I have the latest version of PHP installed.
Last edited by Cristiano Diaz; June 26th, 2007 at 01:46 PM.