Forums

media upload error (7 posts)

  1. thealbatross
    Member
    Posted 1 year ago #

    Hello to all and thank you for your attention

    I've published my first blog with wordpress and everything went ok until I tried to upload some images.
    My domain name is "thealbatross.it"
    The web space is on an italian hosting provider "www.arubat.it".
    I have access to the space through ftp at http://ftp.thealbatross.it in the ftp root I have a directory called the "thealbatross.it". To be short my my web space url is "ftp.thealbatross.it/thealbatross.it".
    When I try to upload a media file I get the following error "The uploaded file could not be moved to D:\Inetpub\webs\thealbatrossit/wp-content/uploads/2011/01." As you can see there is missing the dot (.) between thealbatross and it. I think the problem is how php expression handle the dot (.) I have that it is used as an + operator.
    Is there a way to get around this? Please help a novice :-)

    Thank you

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Try changing the permissions on the wp-content directory to 766. If you still have problems, try 767 or 777. Once your uploads are working, change the permissions on wp-content back to 755 again and check that everything still works OK.
    http://codex.wordpress.org/Changing_File_Permissions

  3. thealbatross
    Member
    Posted 1 year ago #

    Hi esmi,
    thank you for your reply. The problem isn't with write permission on the wp-content directory, they are ok because I've tried uploading files with an ftp client. The problem seems related to the dot present in the complete url. As you can see above the error reported relates to "D:\Inetpub\webs\thealbatrossit/wp-content/uploads/2011/01" instead it should be "D:\Inetpub\webs\thealbatross.it/wp-content/uploads/2011/01" note the missing dot in the word thealbatross.it.

  4. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    That's highly unlikely to be the issue. The error message is displaying a file path - not a url. And uploading files by FTP and making a folder writeable are two entirely different things.

  5. thealbatross
    Member
    Posted 1 year ago #

    You are right but as you can see the path used by wordpress to write to the wp-content folder is wrong because there is missing the dot between thealbatross and it. As far as I have found searching with google it seems that the dot is used as an concatenation operator for strings in php.

    Am I wrong?

  6. James
    Happiness Engineer
    Posted 1 year ago #

    The problem isn't with write permission on the wp-content directory, they are ok because I've tried uploading files with an ftp client.

    Generally, permissions don't affect FTP clients as you've already logged in as the owner. The question here is if PHP has permissions to write to the directory. In some cases, that could require 767 or 777 permissions.

    as you can see the path used by wordpress to write to the wp-content folder is wrong because there is missing the dot between thealbatross and it.

    Is the physical folder on your drive actually named "thealbatross.it" or is it "thealbatrossit"?

    Note, this is the physical folder name, not the domain.

  7. thealbatross
    Member
    Posted 1 year ago #

    Hi James,
    I don't really know because the domain is hosted but when I ftp into the server in the root I find the directory "thealbatross.it" shouldn't the folders in the ftp server reflect the physical folders on the drive?

Topic Closed

This topic has been closed to new replies.

About this Topic