Fixes issues with CSRF tokens and multiple file uploads.