T
T
ta42015-01-11 01:01:58
Yii
ta4, 2015-01-11 01:01:58

Why does the error "Unable to verify your data submission." when uploading files in Yii2?

I'm trying to upload a file. Uploads files fine if the file size does not exceed ~3MB, otherwise an error appears: Bad Request (#400) Unable to verify your data submission.
What is it connected with?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
X
xmoonlight, 2015-01-11
@xmoonlight

limit in php_ini ?

A
Alexander Zelenin, 2015-01-11
@zelenin

usually this error is due to a missing csrf. Try disabling validation.

A
Andrey Pavlenko, 2015-01-11
@Akdmeh

As for disabling csrf - bad advice.
If everything was written correctly, then there should be no problems with it, and it’s better not to disable it, but to figure out how it works, this is a good protection against the destructive actions of hackers.
Other forums say to see if there are csrf headers in the main layout. Please send the contents of this tag; and also - how do you create a submit form.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question