# Uploading a file using CURL

**URL:** <https://community.hubspot.com/t/uploading-a-file-using-curl/84665>\
**Category:** APIs & Integrations\
**Tags:** oauth\
**Created:** [July 4, 2023, 1:43pm UTC](https://community.hubspot.com/t/uploading-a-file-using-curl/84665 "2023-07-04T13:43:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![skylightipv](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@skylightipv](https://community.hubspot.com/u/skylightipv)\
**Post date:** [July 4, 2023, 1:43pm UTC](https://community.hubspot.com/t/uploading-a-file-using-curl/84665/1 "2023-07-04T13:43:59Z")

</div>

Hi,

I’ve created a new private app that I want to use for file upload. Can anyone tell me what is wrong with this CURL command as I’m not getting any response even though it says 100% received? Are the

options

mandatory ([Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/api/files/files))?

curl -X POST -H “X-Requested-With: VBA” -H “Accept: multipart/form-data” -H “Authorization: Bearer xxx-xxx-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx” -F “file”=@somePDF.pdf -F “folderId”=1234567890 -F “fileName”=“testfilename.pdf” “[https://api.hubapi.com/files/v3/files](https://api.hubapi.com/files/v3/files)” --output “testoutput.json”

Many thanks in advance
