mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-04 05:34:51 +00:00
Prevent downloads #512
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Elimil on GitHub (Jun 13, 2020).
Would it be possible to get the will-download event to Session class?
I would want to prevent certain file extensions to be downloaded.
Another thing would be that could do automation with specific filetypes.
More information of this at
https://github.com/electron/electron/blob/master/docs/api/download-item.md
@Saviorjke commented on GitHub (Nov 19, 2020):
What about to get the Event: 'will-navigate'? https://github.com/electron/electron/blob/master/docs/api/web-contents.md
It would be helpful to have some kind of events of this class.
@GregorBiswanger commented on GitHub (Jul 2, 2021):
We need support - I can't add new features as quickly as possible on my own. Here is a video of how you can install the missing features yourself and submit them as a pull request:
https://youtu.be/Po-saU_Z6Ws
Please also test it with you.
@FlorianRappl commented on GitHub (Nov 6, 2025):
The problem is that the event args provide methods - and these method need to be called synchronously. So I am not sure that we can actually handle it / provide this (in the referenced way, i.e., via an event handler that - when triggered - calls the
setSavePathmethod).What we might do is introduce an API that essentially once listens, then already sets it (so you provide something like
StoreNextDownloadToor use a helper function that triggers the download and once listens - with the logic already pre-given and not computed when the event occurs).Somebody wants to take this issue?