This question is an exact duplicate of:
I was trying to upload a gif file (4MB) into a post. I get the following error:
For security reasons, framing is not allowed. Click OK to remove the frames.
See this gif screenshot (click here if it doesn't play):
Why I am getting this error? Is the size of the file a reason?
Same story is here, on meta, when trying to upload same file.