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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

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

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

Uploading Photos


Go to End


4 Posts   1065 Views

Avatar
Antz

Community Member, 5 Posts

5 November 2010 at 12:56am

Hi there, this may be a relatively simple question but im not a web designer and this is frustrating me.
I have created a site for a client and its all up and running but im having to change some of the images on the pages, i have logged into silverstripe CMS and am able to make changes to the information but everytime i try to upload a new image i get the message "File is not a valid upload" this is really frustrating me as i have all these images that need to go up asap for my client.

Avatar
Antz

Community Member, 5 Posts

5 November 2010 at 1:12am

Also all the files im wanting to upload are simple jpgs and png files format for websites

Avatar
mmh

Community Member, 24 Posts

5 November 2010 at 2:03am

Can you upload files in the "Files & Images" section?

Avatar
swaiba

Forum Moderator, 1899 Posts

5 November 2010 at 2:30am

Is there anything in a _config.php along the lines of...

Files::setAllowedExtensions(array('doc','xls'));
Upload::allowed_extensions(array('doc','xls'));

...something like this can be used to restrict the file types up-loadable by extension.