Fix issue with CSRF error on file upload.