Hello,
I'm having a problem uploading files, and i've been through the obvious, through the documentation, the FAQ, and the other posts in this forum.
My guess is that i'm missing something very idiotic, but i'm not sure what that is.
This is the situation:
- When I upload a file (through HTTP), i get the screen to select the album, which should show a little thumbnail of the picture.
Instead of the thumbnail i get the typical "missing file X".
When enabling PHP notices, I have:
Warning line 271: imagejpeg(): Unable to access ./albums/edit/preview_30de0c9b.jpg
Warning line 271: imagejpeg(): Invalid filename './albums/edit/preview_30de0c9b.jpg'
Warning line 277: chmod(): Unable to access ./albums/edit/preview_30de0c9b.jpg
Warning line 277: chmod(): No such file or directory
Warning line 279: getimagesize(): Unable to access ./albums/edit/preview_30de0c9b.jpg
Warning line 279: getimagesize(./albums/edit/preview_30de0c9b.jpg): failed to open stream: No such file or directory
Warning line 282: unlink(./albums/edit/preview_30de0c9b.jpg): No such file or directory
- Now, inside the albums/userpics directory, different directories are getting created as I keep trying this, and the pictures are getting stored there, with the same name they had on my PC (i'm looking at this through FTP)
(this, to me, is proof that the uploads ARE working)
- Inside album/edit, i have a file called: mHTTP_temp_09ef548b.jpg
which is precisely the last picture I uploaded. (apparently the script is looking for file preview_30de0c9b.jpg in this folder and not finding it)
- I've done all the obvious, all folder's and files permissions are set to 777 (this is apparently the default for my webhost's server).
The ONLY thing I see that's strange is the following:
-in phpinfo(), i have both upload_tmp_dir and open_basedir set to "No Value".
now, my guess is that if this was the problem, then the file wouldn't be getting stored in /userpics in the first place, so my reasoning is that this is not the problem, but then again, it might be.
In case it is, can you tell me what I have to ask my webhost to set this parameter to?
In case it's not, does anyone have any idea about this?
Thanks a MILLION in advance
Daniel