Fixed csrf error on file uploads