• Resolved vivekmahato0210

    (@vivekmahato0210)


    I am unable to upload any media files to wordpress. Every time “missing temporary folder” error is thrown back.
    I tried define(‘WP_TEMP_DIR’, dirname(__FILE__) . ‘/wp-content/temp/’);
    and also created a php.ini file in home directory and add upload_tmp_dir= /home/username/public_html/temp/
    also tired pointing the php.ini file to the wp-content/temp folder but the issue isn’t resolved.
    I am using Amazon AWS instance to host the server.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Try using get_temp_dir() function to see where WordPress is trying to put files.

    If it’s trying to use your specified directory /wp-content/temp/ and still won’t work, trying setting directory permissions to 777 to see if it’s a permission issue. It’s possible WordPress might not have permission to upload to temp directory.

    If it’s something different, than you’ll need to troubleshoot and figure out why WordPress isn’t seeing your temp directory.

    ^V

    Thread Starter vivekmahato0210

    (@vivekmahato0210)

    i tried that already but still i am getting the “missing a temporary folder”
    and get_temp_dir() returns /var/www/html/flyrobe-blog/wp-content/temp/

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

The topic ‘Unable to upload media to wordpress’ is closed to new replies.