Fix non-blocking request for file upload