# Files uploaded via API does not open

**URL:** <https://community.hubspot.com/t/files-uploaded-via-api-does-not-open/70819>\
**Category:** APIs & Integrations\
**Tags:** cms-content\
**Created:** [December 8, 2022, 10:43am UTC](https://community.hubspot.com/t/files-uploaded-via-api-does-not-open/70819 "2022-12-08T10:43:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BikramSahu](https://avatars.discourse-cdn.com/v4/letter/b/bbce88/32.png) [@BikramSahu](https://community.hubspot.com/u/BikramSahu)\
**Post date:** [December 8, 2022, 10:43am UTC](https://community.hubspot.com/t/files-uploaded-via-api-does-not-open/70819/1 "2022-12-08T10:43:19Z")

</div>

I could upload files successfully using the **POST/files/v3/files/import-from-url/asyncAPI.** However, the files uploaded are unusable as they don’t open when downloaded. PFA the attached screenshots. All such uploaded files occupy a space of 73 KB.

\*\*

 ![BikramSahu_0-1670495927160.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/1/124170e8b1edab5d215dad9a7c4e2e58dc5269cb.png)  
\*\*

Any idea, what is wrong here? Below is the request body.

URL: [https://api.hubapi.com/files/v3/files/import-from-url/async](https://api.hubapi.com/files/v3/files/import-from-url/async)

Body:

{

“access”: “PUBLIC\_INDEXABLE”,

“name”: “Adiyogi-small.jpg”,

“url”: "[https://drive.google.com/file/d/10ZElQAnaLg306gn5ZWlb5wvOlD90AeU\_/view?usp=sharing",](https://drive.google.com/file/d/10ZElQAnaLg306gn5ZWlb5wvOlD90AeU_/view?usp=sharing)

“folderId”: “94455205974”,

“duplicateValidationStrategy”: “NONE”,

“duplicateValidationScope”: “ENTIRE\_PORTAL”,

“overwrite”: true

}

 ![BikramSahu_1-1670496095482.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/4/4/44df65e8885e7a788722d16030059fc567920503.png)

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [December 9, 2022, 7:44pm UTC](https://community.hubspot.com/t/files-uploaded-via-api-does-not-open/70819/2 "2022-12-09T19:44:01Z")

</div>

Hey, @BikramSahu 👋 Is this issue persisting? If so, I can try to set up a similar test. Your files are hosted in a Google Drive folder with public permissions, correct?

Best,

Jaycee

---

<div class="post-metadata">

**Author:** ![BikramSahu](https://avatars.discourse-cdn.com/v4/letter/b/bbce88/32.png) [@BikramSahu](https://community.hubspot.com/u/BikramSahu)\
**Post date:** [December 12, 2022, 5:44am UTC](https://community.hubspot.com/t/files-uploaded-via-api-does-not-open/70819/3 "2022-12-12T05:44:45Z")

</div>

Hi Jaycee, thanks for your reply. I retested the scenario and the issue still persists. Yes, the files are hosted in a publicly shared folder with edit access. You can use the same shared link for reproducing at your end. Your input on this is appreciated.

Regards, Bikram.

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [December 13, 2022, 10:27pm UTC](https://community.hubspot.com/t/files-uploaded-via-api-does-not-open/70819/4 "2022-12-13T22:27:01Z")

</div>

Thanks, @BikramSahu 👋 I’ll set up a test using your link.

One clue I see is that file size is that same for both of your uploads, and they are both behaving in the same unexpected manner. This makes me wonder if it is related to Google Drive and not the two files themselves. Thanks! — Jaycee
