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

How to download rar, psd, ai and so on


Reply


6 Posts   1086 Views

Avatar
benni91

Community Member, 72 Posts

3 August 2011 at 2:52am

Hi everyone,

I allowed to upload .rar, .psd and .ai files. This works fine.
But when i'll download them, the site always redirects me to an "error 403 page - access denided".

Why?

How can i fix this problem and allow to download every uploaded file?

Can someone help me ?

Thx Benni

Avatar
zenmonkey

Community Member, 532 Posts

3 August 2011 at 6:25am

I'd first check the ownership/permissions on the file. IF its Linux system make its 766

Avatar
Invader_Zim

Community Member, 141 Posts

3 August 2011 at 6:34am

Edited: 03/08/2011 6:35am

Also, have a look into your /assets/.htacess file (/assets/web.config if you are on IIS)

There's a description in it on how to whitelist additional file types for download.

Cheers

Avatar
benni91

Community Member, 72 Posts

3 August 2011 at 9:17am

doesn't work :(
i modified the web.config but i think that takes no effect because my webspace told me this "Apache/2.2.17 Server at hobedesign.de Port 80"

Apache. But i can't find a .htacess file :(

what could i do ?

Avatar
Invader_Zim

Community Member, 141 Posts

3 August 2011 at 9:25am

Well, you could download, modify and use this one from here:
[url]https://github.com/silverstripe/silverstripe-installer/blob/master/assets/.htaccess[/url]

Avatar
benni91

Community Member, 72 Posts

3 August 2011 at 8:30pm

Edited: 03/08/2011 8:39pm

aha :) i tried to create a new file BUT than Aptana announced me that the file allready excist => Aptana didn't show .htaccess i think.
ok. i'll get another programm to open/show/download the .htaccess file and thna i'll try again

but thx :)

//EDIT: After changing the Aptana settings to show .htaccess files, i edited it and now i can download everything :) Thx for the help