Skip to main content
Apr 10, 2025 10:01 AM UTC
Solved

Saving data to a file on a local laptop

Hello, I am currently facing a problem exporting some custom data to a file on my laptop.

The data is properties from Custom data represented in Yaml format converted to a string. I’m trying to save it by clicking my extension in context MenuType created with client.registerAction.

Normally, I use fs.writeFile on my server side and post method on my client side. Now I'm a little confused on how to do this with Lucid.

I would appreciate any help.

Alex LAnswer
Lucid product team
Apr 10, 2025 8:36 PM UTC

Hi Darina, currently Lucid only allows for direct download to your browser’s default directory. Choosing the location would have be configured in the user’s browser.

Comments

Apr 10, 2025 11:12 AM UTC

Oh, I just found the client.download method. But is there a way to save the file to a specific directory?

Translate
Alex LAnswer
Lucid product team
Apr 10, 2025 8:36 PM UTC

Hi Darina, currently Lucid only allows for direct download to your browser’s default directory. Choosing the location would have be configured in the user’s browser.

Translate
Apr 11, 2025 6:26 AM UTC

Thank you ​@Alex L 

Translate