# How to upload file to 3rd party api (in this case is CloudSign api)

**URL:** <https://forum.kintone.dev/t/how-to-upload-file-to-3rd-party-api-in-this-case-is-cloudsign-api/107>\
**Category:** General\
**Created:** [May 24, 2019, 2:41am UTC](https://forum.kintone.dev/t/how-to-upload-file-to-3rd-party-api-in-this-case-is-cloudsign-api/107 "2019-05-24T02:41:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)\
**Post date:** [May 24, 2019, 2:41am UTC](https://forum.kintone.dev/t/how-to-upload-file-to-3rd-party-api-in-this-case-is-cloudsign-api/107/1 "2019-05-24T02:41:39Z")

</div>

Dear Everyone,

I'm sorry, but since I haven't found an answer to my question yet, I created one from here.

## My problem

I cannot upload a file to the CloudSign API using JavaScript in a Kintone App.

CloudSign API that I am using:

- [cloudsign-web\_api | 0.10.4 | CloudSign | SwaggerHub | `/documents/{documentID}/files`](https://app.swaggerhub.com/apis/CloudSign/cloudsign-web_api/0.10.4#/default/post_documents __documentID__ files)

## Attempts

This is a list of solutions that I tried and failed:

- Using the Kintone JavaScript Proxy API: failed, error "invalid upload."
  - [Proxy Request - Kintone Developer Program](https://kintone.dev/en/docs/kintone/js-api/external-api-requests/proxy-request/)

- Using the Kintone JavaScript Proxy Upload API: It did not actually fail, but I don't understand how to use it. My error was "invalid upload."
  - [Proxy File Upload - Kintone Developer Program](https://kintone.dev/en/docs/kintone/js-api/external-api-requests/proxy-file-upload/)

- Using fetch: CORS error.

I would really appreciate it if somebody with experience in this could help me.

---

<div class="post-metadata">

**Author:** ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)\
**Post date:** [May 25, 2019, 3:04pm UTC](https://forum.kintone.dev/t/how-to-upload-file-to-3rd-party-api-in-this-case-is-cloudsign-api/107/2 "2019-05-25T15:04:47Z")

</div>

Dear Tiến Đạt Trần

Unfortunately, we are unsure what is happening with the information provided.

By looking at the error, the request's content of the target API may be incorrect, but we do not know the details of the CloudSign API or the content of the request being executed.

Please let us know the details of the request you made and the error details.

Regards,

Yasu
