Hey all,

I have a script that works fine on my pc (windows/apache) and my linux/apache server but it does not work on the clients windows/iis server. It dies at move_uploaded_file() - the server admin swears the permissions are fine.

Here is my output for the error.

c:\inetpub\wwwroot\cms\downloads\

Array
(
    [thefile] => Array
        (
            [name] => characters_cheat_sheet.pdf
            [type] => application/pdf
            [tmp_name] => C:\temp\php1D.tmp
            [error] => 0
            [size] => 506488
        )

)

Your file could not be uploaded because: .

Please help, it's driving me insane.

    There are no errors displayed at all?

    You said "it dies". If it dies can you get an error of any sort?

      No errors. I have a if else statement. If move_uploaded_file else display errors, but there is no error to show as seen by the array below. It's confusing. Any ideas?

        Upload file size restriction?

        This is going to be hard to troubleshoot without any errors, unfortunately.

          Upload file sizes are well accounted for. All PHP settings for file size, execution times etc are set. The limit is 51MB, no size file is working. All server PHP ini files are more or less the same.

          But, generally what should the temp directory be for windows servers?

            a month later

            This issue was resolved by the temp file directory being changed to the download directory. Not sure if having them both in the same directory is a good thing but no errors so far. I think from now on I will create a temp directory with-in the application directory for all windows servers.

              Write a Reply...