I can't seem to be able to fix the problem I always have when testing an upload script for files, in my case images. I have Windows Xp SP2 with Internet Information Services (IIS) and php 4.34. A simple html that let's me browse for a file and submit the form to a simple php file that takes the temp file and copies it to the destinary path doesn't work for me. I get the following message:
Warning: filesize(): Stat failed for D:\Windows\Temp\php3.tmp (errno=2 - No such file or directory) in E:\web\farmart.net\subir_imagen.php on line 44
What I can see is that as I submit the form that has the path of the file I want to upload, I have a window explorer opened with the folder D:\Windows\Temp and see that it never copies the temp file (in my case "php3.tmp") to that folder, so that's why the error is raised when I can't copy or do anything to a file that doesn't exists.
The curious thing is that if I upload that html and php script to a shared hosting I pay monthly, I don't have that problem.
I checked the php.ini and everything seems fine:
; Whether to allow HTTP file uploads.
file_uploads = On
; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir =D:\Windows\Temp
; Maximum allowed size for uploaded files.
upload_max_filesize = 2M
So I really don't know how to solve this and where to start. Can somebody help me out here?
Problems testing upload of images in my local server (IIS)
Moderator: General Moderators