Page 1 of 1

Uploading files?

Posted: Thu Feb 03, 2005 1:59 pm
by webby57
Hi,

I have installed the last version 8.2 on cms made simple but when I want to upload a file or images and I get this error:

"file could not be uploaded. Permission Problem?"

I have checked permission on the uploads and images directory and it reads 777

Anyone can help pse!!!!. It's very urgent...

tks

Re: Uploading files?

Posted: Tue Mar 14, 2006 2:22 am
by Chris Buechler
This is an older post, but for the benefit of anyone that runs across it in the archives from a search, like I did... 

I had the same problem, and I figured it out from a couple other posts here and poking around a bit. 

First, make sure the permissions on the uploads directory allow the user the web server is running as to upload.  chmod'ing 777 will suffice, but that's not a great idea.  It's better to chown that directory so it's owned by the user running your web server. 

Second, make sure your php.ini allows uploads, and has a sufficiently large max filesize:
file_uploads = On
upload_max_filesize = 16M

Third, in your CMSMS config.php, make sure the max_upload_size is sufficiently large.  Use this for 10 MB.
$config['max_upload_size'] = 10000000;

That took care of it for me. 

Re: Uploading files?

Posted: Tue Mar 21, 2006 10:07 am
by jelle
True points. But not evry user using a hosting provider can change php.ini or chmown to a different user. In those cases only rwxrwxrwx works, as ugly as it is.