uploading via curl works