json-as-xlsx icon indicating copy to clipboard operation
json-as-xlsx copied to clipboard

Not saving using the fileName mentioned in ISettings

Open arcp10 opened this issue 2 years ago • 1 comments

const settings: ISettings = { fileName: 'abc_results.xlsx', extraLength: 2, writeOptions: {} }; It gets a random file name on download and no file type. Is there some other setting that I am missing? Or is there any way I can tweak the return object and change the file name before downloading the attachment. Any help is highly appreciated I spent enough time on this to figure out but in vain. Thank you!!

arcp10 avatar Sep 20 '22 22:09 arcp10

Can you give more details about your use case?

In any case, here are some examples:

  • Using with Express: https://github.com/LuisEnMarroquin/json-as-xlsx/blob/main/examples/express/server.ts
  • Using with Vue.js: https://github.com/LuisEnMarroquin/json-as-xlsx/blob/main/examples/vue-app/App.vue

elyse0 avatar Sep 25 '22 07:09 elyse0

I was also unable to reproduce the issue, it's still hapenning with latest version?

It can be reopen it if it still happens

LuisEnMarroquin avatar Mar 12 '23 17:03 LuisEnMarroquin