reset password
Author Message
lcampo14
Posts: 14
Posted 12:47 Aug 20, 2015 |

Hi Dr. Sun,

I am getting the following error when trying to upload files:

HTTP Status 403 - Invalid CSRF Token 'null' was found on the request parameter '_csrf' or header 'X-CSRF-TOKEN'.

I have put the CSRF token in both the url as a parameter and as a hidden field and still get the same error. In my form I am uploading the cv, Rstatement and Tstatement in one form. Does it require a token for each Multipart object? Should i be uploading each document individually? The upload and download use to work before adding spring security.

 

hgadhia
Posts: 52
Posted 19:12 Aug 22, 2015 |

Did your form action had the CSRF token parameter, something like

<form action="apply.html?${_csrf.parameterName}=${_csrf.token}">