WordPress.org

Ready to get started?Download WordPress

Forums

Pb Uploading an image (3 posts)

  1. aouziel
    Member
    Posted 5 years ago #

    Hello,

    i am not able to upload images anymore.
    I tried the flash one and the browser one...

    I have an error message: a temp folder is missing...

    Could you help me ?

    thank you

  2. pawsingleton
    Member
    Posted 5 years ago #

    Have you gone looking for the folder it says is missing?

  3. Shane G
    Member
    Posted 5 years ago #

    Hi,

    You can easily overcome this problem by editing the php.ini file located in etc/ folder, uncommenting the line upload_tmp_dir (by deleting the semi-colon “;”) and pointing the variable to a folder using an absolute path. In Linux possible steps are:

    1. open a terminal
    2. create a temporary folder for all apache tasks in your user folder and grant all right to all users:

    mkdir wwwtmp && chmod 0777 wwwtmp

    3. edit php.ini with your text editor and set the temporary folder (you must switch to root user)

    su
    vim /opt/lampp/etc/php.ini
    upload_tmp_dir = /home/my_user/wwwtmp/
    Remeber to remove preceding “;”

    4. save the file (in vim type :wq an press enter) and restart xampp

    /opt/lampp/./lampp restart

    Thanks,

    Shane G.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.