Fix "400 Bad Request" when uploading empty files