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 do I upload different format files?


Reply

3 Posts   241 Views

Avatar
Arbee

12 August 2013 at 3:53am Community Member, 21 Posts

Hi, I hope someone can help me. I am using 2.4.5 and need to upload some files that are not images or the usual formats. The formats are for embroidery machines so they include formats such as .SEW .PES .jef and others. How can I upload those to my website?

Thanks for your help.

Avatar
martimiz

13 August 2013 at 5:56am Forum Moderator, 1092 Posts

So this is for 2.4.x:
You'd have to add your extensions to the File::$allowed_extensions array:

http://www.silverstripe.org/general-questions/show/13686

You might also have to change the .htaccess file in your assets folder. There's some talk on that here:

http://www.silverstripe.org/general-questions/show/16454

Avatar
Arbee

17 August 2013 at 2:32am Community Member, 21 Posts

Thanks so much Martimiz. That worked great. Didn't need to do the second part.