Skip to content
This repository has been archived by the owner on May 22, 2020. It is now read-only.

File download in the background #744

Open
rmdort opened this issue Mar 7, 2019 · 2 comments
Open

File download in the background #744

rmdort opened this issue Mar 7, 2019 · 2 comments

Comments

@rmdort
Copy link

rmdort commented Mar 7, 2019

Hi,

Does openfin support background file download like in electron? Without invoking SaveAs dialog

const { BrowserWindow } = require('electron')
let win = new BrowserWindow({ width: 800, height: 600 })

win.webContents.downloadURL('hello.pdf')
@tgoc99
Copy link
Collaborator

tgoc99 commented Mar 13, 2019

Hi -

Could you let us know a little more about the use case? Programmatic downloads without user prompt create a security concern. We enable this functionality but require you to put the assets into the manifest upfront. Please look into app assets:

https://openfin.co/documentation/faqs#how-do-i-co-deploy-assets
https://cdn.openfin.co/jsdocs/stable/tutorial-system.downloadAsset.html

Let me know if that is not helpful.

@rmdort
Copy link
Author

rmdort commented Mar 14, 2019

My use-case is to automatically download excel file to Downloads folder when user clicks on a link.

If openfin doesnt support it, is there any electron bridge that i can use to get this working? Not sure if electron apis are disabled in openfin

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants