Fix upload of large files