Fix file uploading compatibility via curl for 5.5