21278 Posts in 5728 Topics by 2599 members
| Go to End | Next > | |
| Author | Topic: | 2036 Views |
-
Files & images problem

17 January 2010 at 9:00pm
Running site on SS 2.4 Alpha 1
But cant upload images to upload folder.In assets folder there is no .htaccess file like it was in 2.3.4
-
Re: Files & images problem

18 January 2010 at 8:02pm
Whats the error that you are getting?
the .htaccess file in assets just contains the extensions that are not able to be executed from there.
Most likely you have a permissions problem on the assets path.
Cheers
-
Re: Files & images problem

20 January 2010 at 12:12am
What is the permissoins need to be and also the .htaccess content because @ moment i dont have any .htaccess in assets folder only the main .htaccess
-
Re: Files & images problem

21 January 2010 at 5:40pm
HI Webdoc,
On my system the .htaccess in the assets folder contains the following;
RemoveHandler .php .phtml .php3 .php4 .php5 .inc
RemoveType .php .phtml .php3 .php4 .php5 .incAs for the permissions that the assets folder should have, it needs to be readable and writable by the webserver user.
What error is the webserver throwing when you attempt to upload a file?
Cheers
Owen -
Re: Files & images problem

21 January 2010 at 6:06pm Last edited: 21 January 2010 6:07pm
Website Error
There has been an error
The website server has not been able to respond to your request.root folders htacess is
### SILVERSTRIPE START ###
<IfModule mod_dir.c>
DirectorySlash Off
</IfModule><Files *.ss>
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Files>RewriteEngine On
RewriteBase /RewriteCond %{REQUEST_URI} !(\.gif$)|(\.jpg$)|(\.png$)|(\.css$)|(\.js$)
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]### SILVERSTRIPE END ###
also writed th assets folder as you sayd but error is the same
-
Re: Files & images problem

21 January 2010 at 6:10pm
Do you have access to the webservers error logs? If so, have a look at the error log and see what the webserver thinks the problem is. Chances are it will be a permission denied error.
Also make sure that the assets folder is owned by the webserver user and they are able to read,write and execute on the folder.
Cheers
| 2036 Views | ||
| Go to Top | Next > |


