Using curl to upload files