# Does anyone know how to export a csv file via html?

**URL:** <https://forum.wixstudio.com/t/does-anyone-know-how-to-export-a-csv-file-via-html/41845>\
**Category:** Ask the community\
**Tags:** question, code\
**Created:** [May 27, 2022, 1:10pm UTC](https://forum.wixstudio.com/t/does-anyone-know-how-to-export-a-csv-file-via-html/41845 "2022-05-27T13:10:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cue](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@Cue](https://forum.wixstudio.com/u/Cue)\
**Post date:** [May 27, 2022, 1:10pm UTC](https://forum.wixstudio.com/t/does-anyone-know-how-to-export-a-csv-file-via-html/41845/1 "2022-05-27T13:10:41Z")

</div>

The code in the below link used to work well before but now it has stopped working, any fix?

> **[\[SOLVED\] How to download the contents of a data collection in a csv file |...](https://community.wix.com/velo/forum/tips-tutorials-examples/how-to-download-the-contents-of-a-data-collection-in-a-csv-file)**
>
> Relevant tags for searching:
> \#csv #data\_collection #download\_file #htmlComponent #utf8 #unicode
> 
> A forum member recently posted a question wanting to know how to download the contents of a data collection as a comma separated values (csv) file.
> 
> Not...

---

<div class="post-metadata">

**Author:** ![Certified\_Code](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/certified_code/32/80179_2.png) [@Certified\_Code](https://forum.wixstudio.com/u/Certified_Code)\
**Post date:** [May 28, 2022, 2:34am UTC](https://forum.wixstudio.com/t/does-anyone-know-how-to-export-a-csv-file-via-html/41845/2 "2022-05-28T02:34:38Z")

</div>

It does not stop working.

What is the problem you are experiencing?

---

<div class="post-metadata">

**Author:** ![Cue](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@Cue](https://forum.wixstudio.com/u/Cue)\
**Post date:** [May 28, 2022, 2:54am UTC](https://forum.wixstudio.com/t/does-anyone-know-how-to-export-a-csv-file-via-html/41845/3 "2022-05-28T02:54:02Z")

</div>

@certified-code The process does not continue once it gets to the download\_file()

---

<div class="post-metadata">

**Author:** ![Certified\_Code](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/certified_code/32/80179_2.png) [@Certified\_Code](https://forum.wixstudio.com/u/Certified_Code)\
**Post date:** [May 29, 2022, 2:32am UTC](https://forum.wixstudio.com/t/does-anyone-know-how-to-export-a-csv-file-via-html/41845/4 "2022-05-29T02:32:24Z")

</div>

@chidiejike What error do you see? It is hard to understand what you are experiencing without details.

---

<div class="post-metadata">

**Author:** ![Cue](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@Cue](https://forum.wixstudio.com/u/Cue)\
**Post date:** [May 29, 2022, 7:52am UTC](https://forum.wixstudio.com/t/does-anyone-know-how-to-export-a-csv-file-via-html/41845/5 "2022-05-29T07:52:26Z")

</div>

@certified-code a console.log just before the download function is called shows that the contents were properly arranged ready for download, but a console.log inside the download function shows nothing. This might have to do with e blob conversions or compatibility, can you paste your code inside the download function?

---

<div class="post-metadata">

**Author:** ![Cue](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@Cue](https://forum.wixstudio.com/u/Cue)\
**Post date:** [June 23, 2022, 8:10am UTC](https://forum.wixstudio.com/t/does-anyone-know-how-to-export-a-csv-file-via-html/41845/6 "2022-06-23T08:10:14Z")

</div>

This is the error  
_Download is disallowed. The frame initiating or instantiating the download is sandboxed, but the flag ‘allow-downloads’ is not set. See [Chrome Platform Status](https://www.chromestatus.com/feature/5706745674465280) for more details_ .
