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.

Installing SilverStripe

Getting SilverStripe up and running on your computer and on your web server.

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

File is not a valid upload, 2.4.5

Go to End

10 Posts   3321 Views


30 June 2011 at 3:44am Community Member, 3 Posts

New to SilverStripe, and I have to say a pretty abysmal start.

Out of the box, on fresh install of 2.4.5, I can't even upload a 20kb jpg.

Did a search on the forums, seems to be a whole slew of similar problems dating back as far as 2 years ago.

Could not find one answer that worked.

Yes, assets/uploads folder has the correct permissions.

I have other systems on this same server, Wordpress, Drupal, Concrete all with zero issues uploading files of any type.

Again, pretty abysmal!


30 June 2011 at 4:54am (Last edited: 30 June 2011 6:32am), Community Member, 6 Posts

Same problem over here. I upgraded to 2.4.5 (from 2.3.7) and I cannot upload files as admin.


[SOLUTION]: The patch solved my problem, which showed up as "File is not a valid upload".

Please note that the suggestion by some other user in this forum ( did NOT solve my problem but the patch in changeset 114471 did.
However, be careful, the lines stated in the patch are no longer correct for 2.4.5. In my case it was line 250 instead of 260 in the Folder.php and the lines 223 instead of 203 in the file AssetAdmin.php.


30 June 2011 at 7:14am Community Member, 3 Posts

Ah, Thank you for pointing to a solution!

This first experience has really soured me on SilverStripe -- as a new user I dread to imagine what other surprises await when such a basic piece of functionality is busted right out of the gate.


30 June 2011 at 7:17am Community Member, 3 Posts

Wow, I just noticed the timestamp on that "fix" was 7 months ago! And it's still not rolled out?

Ok, that's enough to alienate me from SilverStripe forever. Nice potential but going to look elsewhere!


30 June 2011 at 7:35am Community Member, 6 Posts

Overall, I am quite impressed by SilverStripe. No other issues than this one of which I can tell you.

Definitely, I could not believe that this path is not already rolled out.


12 July 2011 at 9:42pm (Last edited: 12 July 2011 9:43pm), Community Member, 4 Posts

Tried the Solution:

Using SS 2.45

The patch solved my problem, which showed up as "File is not a valid upload".

This solution did not work for me

Any other ideas?

Any help greatly appreciated


12 July 2011 at 9:46pm Community Member, 6 Posts

...are you aware that the lines that have to be changed are shifted a bit, so you cannot apply the patch "blindly"?


13 July 2011 at 3:47pm Community Member, 4 Posts


thanks for your help, much appreciated

i checked and sorted out my problem as you recommended. all works fine

thanks again

Go to Top