• Hello,

    While uploading photos I am getting ‘file upload error’ in http_errors, following is the error message :
    ===================================
    PHP Warning: File upload error – unable to create a temporary file in Unknown on line 0
    ===================================

    And on the browser I am getting this error message(image size is 300 kb) :
    ===================================
    File is empty. Please upload something more substantial.
    ===================================

    I have modifed php.ini for upload_tmp_dir but didnt make any difference. All permissions seems to be correct. Not sure what I am missing, is it concern with apache configuration? can you please tell me whats the exact problem.
    Thanks in advance.

Viewing 5 replies - 1 through 5 (of 5 total)
  • While uploading photos

    What are you using to upload the photos?

    Thread Starter vivekp

    (@vivekp)

    Its purely a php script which wordpress has made. I am not sure what all changes we need to do in php.ini. Or is there any other reason my server is not allowing to upload ?

    Thread Starter vivekp

    (@vivekp)

    No help, so bad…. 🙁

    Check your upload directory permissions once again. Else, do a test upload with a small image file size.

    And what does php.ini has to do with the upload directory location? I thought WordPress defaulted all uploads to /wp-content/?

    daftska

    (@daftska)

    I ran into this problem with OpenBSD 4.0. Since apache runs chroot’ed, what I had to do was create /var/www/tmp then assign it 777 permissions (nothing else worked), and set php.ini to have the temp folder “/tmp” since the chroot doesn’t go any deeper.

    Hope that helps.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘File upload error’ is closed to new replies.