Jump to:

23379 Posts in 18298 Topics by 2867 members

General Questions

SilverStripe Forums » General Questions » Upload (too large) Image - SecurityID doesn't match, possible CSRF attack.

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

Page: 1
Go to End
Author Topic: 1653 Views
  • swaiba
    Avatar
    Forum Moderator
    1786 Posts

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

    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

  • landyman
    Avatar
    Community Member
    11 Posts

    Re: Upload (too large) Image - SecurityID doesn't match, possible CSRF attack. Link to this post

    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.

    1653 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.