ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Upload Error

April 28, 2008 1:31am

Subscribe [2]
  • #1 / Apr 28, 2008 1:31am

    adamfairholm

    61 posts

    I haven’t been able to find anything on this anywhere, so I am curious as to why I keep getting this error…

    “The temporary folder is missing.”

    …when using the file uploading class.

    In the language file it’s the error message associated with “upload_no_temp_directory”. Am I missing something? Do you need to set a temporary directory somewhere in Code Igniter? I can’t find any mention of it in the documentation or anyone else who has run into this error message on the boards.

    My folder permissions are all in order, so is the path, and I’m testing this out with the exact code from the user guide with modifications for my system.

  • #2 / Apr 28, 2008 10:06am

    Seppo

    483 posts

    This is a CI wrapper for a PHP error… Take a look here.
    To fix it, if you are using Apache, you can use .htaccess to set a temp directory to a folder that actually exists, or you can look for what’s the directory that your server is trying to use and creating.

    Using .htaccess to change it you should set

    php_value upload_tmp_dir /path/to/temp/dir

    Looking for you current temp dir, you can use

    echo ini_get('upload_tmp_dir');

    or in the phpinfo() function. Then create the folder with permission for Apache writting.

  • #3 / May 06, 2008 5:35pm

    adamfairholm

    61 posts

    Using .htaccess gave me an internal server error, but I was able to fix the problem by looking at the phpinfo() setting, and found that it had no value. I set the directory in php.ini to one I had created with write permission, restarted Apache, and all was right with the world. Thank you very much for the help!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases