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've moved the forum!

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.

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

Upload (too large) Image - SecurityID doesn't match, possible CSRF attack.


Go to End


2 Posts   2094 Views

Avatar
swaiba

Forum Moderator, 1899 Posts

26 May 2010 at 12:56am

Edited: 26/05/2010 1:14am

Hi,

I have a dataobject, administered by the great ModelAdmin, that scaffolds the

$static $has_one = array('MyImage' => 'Image');

this fives a very nice ajaxy upload and see the image, but when the image is larger than the file...

; Maximum allowed size for uploaded files.
; http://php.net/upload-max-filesize
upload_max_filesize = 2M

then I get the message "SecurityID doesn't match, possible CSRF attack." after I select the too large image from my computer and select 'attach image'...

I would be very grateful for any help one this please.

Barry

p.s. I should mention this is on 2.4.0

Avatar
landyman

Community Member, 11 Posts

5 October 2010 at 11:58am

I got the same error when uploading large files (videos) to a site I was working on. I had to modify the php.ini file used by the server; specifically, the post_max_size, upload_max_filesize and memory_limit variables. I adjusted them to values that would fit the files I was uploading.