Server side "tmp_name" error

Last post 01-19-2010, 7:34 PM by bowlesdr. 4 replies.
Sort Posts: Previous Next
  •  01-17-2010, 3:19 PM 58210

    Server side "tmp_name" error

     
     Product works great for me with smaller files but when I try larger ones (~ 4MB) I get the following error:
    Server side exception : failed to upload P1000065.JPG

    Debug Information:

    (2) tmp_name is not available for P1000065.JPG
     
    My php.ini settings (as per http://phpfileuploader.com/FAQ.html#16) are as follows:
    • file_uploads = on
    • upload_max_filesize = 5000M
    • max_input_time = 60
    • memory_limit = 64M
    • max_execution_time = 30
    • post_max_size = 5000M
     
  •  01-18-2010, 1:56 AM 58217 in reply to 58210

    Re: Server side "tmp_name" error

    Hi,
     
    Please change 5000M to 1000M
     
    Regards,
    Terry
     
  •  01-18-2010, 7:09 AM 58232 in reply to 58217

    Re: Server side "tmp_name" error

    Thanks for the quick response Terry.
     
    Changed to the following:
    • upload_max_filesize = 1000M
    • post_max_size = 1000M
    Replaced all files with original download and rebooted the server.
     
    Still encountering the problem however some files upload completely and other leave partial uploads in /tmp/uploadertemp.
     
    I tried to search the forums for "tmp_name" but the search returns nothing, not even my original post.  Is there a trick to using the forum search?
     
    Thanks,

         Dave
  •  01-18-2010, 7:38 PM 58251 in reply to 58232

    Re: Server side "tmp_name" error

    Dave,
     
    I suggest you try a simple with <input type='file' name='file1' /> , and check how large the file could be uploaded.
     
    check @$_FILES["file1"]["name"] and @$_FILES["file1"]["tmp_name"]
     
    "name" mean the file name ,
     
    and "tmp_name" mean the temp file path on the server.
     
    Regards,
    Terry
  •  01-19-2010, 7:34 PM 58273 in reply to 58251

    Re: Server side "tmp_name" error

    Thanks, that got me looking in the right direction.
     
    Changes I was making to /etc/php5/apache2/php.ini where not taking affect.

    I still don't know why but adding a /etc/php5/apache2/conf.d/php.ini file with the settings I want has solved the problem.
View as RSS news feed in XML