Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Files & images problem


Go to End
Reply


20 Posts   2767 Views

Avatar
Webdoc

Community Member, 333 Posts

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

Avatar
Webdoc

Community Member, 333 Posts

18 January 2010 at 6:11pm

Can someone help how to fix the assets folder

Avatar
OwenW

Community Member, 45 Posts

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

Avatar
Webdoc

Community Member, 333 Posts

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

Avatar
Webdoc

Community Member, 333 Posts

21 January 2010 at 5:36pm

CAn someone help me please

Avatar
OwenW

Community Member, 45 Posts

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 .inc

As 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

Avatar
Webdoc

Community Member, 333 Posts

21 January 2010 at 6:06pm

Edited: 21/01/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

Avatar
OwenW

Community Member, 45 Posts

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

Go to Top