Skip to:
Content
Pages
Categories
Search
Top
Bottom

Could not upload the file – there is no temporary folder.


  • sureshdrim
    Participant

    @sureshdrim

    I installed upload avatar plugin but while uploading picture I am getting following error:

    “Could not upload the file – there is no temporary folder.”

    I have already created “avatar” folder in bbpress root directory & also assigned read and write permissions for users on this folder.Still problem not solved…

    Plz anyone help!!

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

  • chrishajer
    Participant

    @chrishajer

    Can you get the phpinfo for your installation and see if there IS a tmp folder?

    Put this into a file called whatever.php, then access it with your browser at http://www.example.com/bbpress/whatever.php

    <?php
    phpinfo();
    ?>

    I think you’re looking for a value called upload_tmp_dir

    If it’s not there someone will need to look at the plugin and see what’s actually needed.

    Please post a link to the plugin you’re using too.


    sureshdrim
    Participant

    @sureshdrim

    Hello Chrishajer,

    I checked php info by above mentioned method.I found no temp folder so I created a folder called “tmp” in root directory.It worked.Now I am able to upload avatars to “avarars” folder in root directory.

    But picture is not displayed after uploading.It gives message “Your avatar has been uploaded.” But its not displayed instead a blank box is displayed replacing default avatar.

    I checked this error in google chrome by using “inspect element” context menu..the error says: ” 403 Forbidden “

    Here is the link to plugin I am using : https://bbpress.org/plugins/topic/avatar-upload/#post-219

    Plz help !!


    chrishajer
    Participant

    @chrishajer

    What is the path to the avatar? Does it look correct?

    Also, 403 means the permissions are wrong on the directory where the element you inspected resides. What is that object and what are the permissions of the object and the folder it’s in?

    Or, post a link to your forum.


    sureshdrim
    Participant

    @sureshdrim

    I have set all the the three permissions i.e. read,write and execute on the avatars folder. Avatars folder is in the root directory.i.e. http://www.thecollegehunt.com/avatars .Following is the link to my forum,here you can see a blank avatar box with user name-ArchuJoshi.

    http://www.thecollegehunt.com/topic.php?id=21

    When we inspect this blank avatar box by “inspect element”option in Google Chrome context menu,it shows following link: http://www.thecollegehunt.com/avatars/archujoshi.jpg?1265355713

    This URL gives “403 Forbidden” error.

    I am surprised because I used the same plugin and same settings for my another forum i.e. http://www.emaaya.com ,its working perfectly.Don’t know why its giving error with this forum only.


    chrishajer
    Participant

    @chrishajer

    Take a look at the DirectoryIndex here:

    http://www.thecollegehunt.com/avatars/

    This file comes up fine when you click on it:

    http://www.thecollegehunt.com/avatars/default.png

    This one gives a 403:

    http://www.thecollegehunt.com/avatars/suresh.jpg

    The permissions or ownership between those two files are different. default.png is fine. Be sure your other images have the same ownership and permission and it will work.


    sureshdrim
    Participant

    @sureshdrim

    Ok.thanks chrishajer !!!

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.