for file upload curl needs the file parameter