Jump to content

Problems uploading images or files


Sylvio
 Share

Recommended Posts

Hi,

So I am facing this issue, I just moved my clients website on to his (pre-live) hosting but I'm having issues uploading images and files, actually any upload thru processwire admin fails (http upload).

I am getting this error:

Unable to move uploaded file to: /var/www/vhosts/showled.tv/httpdocs/site/assets/files/5874/20110707_164442-1.jpg

The hosting is a linux server with a Plesk system, and I think the problem is that every upload thru http is done by the user apache:apache, and there lies the problem!

This is pretty urgent, the client started to add content, but he is not able to upload his images, etc...

Is there anybody who can help me this issue?

Regards,

Sylvio

Link to comment
Share on other sites

5874 is not a temp dir. That page id numbered dir is created for every page as its place to store files. Running as apache:apache is totally normal, just have to figure out where the file system is blocking write access to apache. Could also be that one of the parent dirs needs +x.

Link to comment
Share on other sites

Try adding this to the top of your .htaccess:

php_value upload_tmp_dir  /path/to/root/site/assets/cache/

Of course replace with the actual path to site/assets/cache/. This may allow you to work around safe mode.

Link to comment
Share on other sites

Glad that worked. If you can , keep it turned off. I was only suggesting to change the upload dir if you couldnt turn off safe mode. There is a reason why PHP 6 doesn't even have safe mode, it's generally a bad thing when you are trying to run any kind of web application. I don't know of any web hosting providers using safe mode.

Link to comment
Share on other sites

  • 8 months later...

Hello, I am new to this intriguing dimension called ProcessWire.

I am doing my first steps, but I also get this message:

Unable to move uploaded file to: /var/www/vhosts/showled.tv/httpdocs/site/assets/files/5874/20110707_164442-1.jpg

I am running the site in Windows-Apache-PHP5.3

Any help?

  • Like 1
Link to comment
Share on other sites

Hi,

Did you check the permissions on the assets folder?

I am not so familiar with Apache on Windows, but assume that the service account running Apache needs write permission to the assets folder, as well as to it's subfolders.

/Jasper

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...