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
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
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
Can someone help how to fix the assets folder
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
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
CAn someone help me please
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
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
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