You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We could also do this via JavaScript with something like this vanilla JavaScript instead (which basically accepts an object dynamically wraps up the above HTML and clicks it):
constdownloadVirtViewerFile=(content,filename='virt-viewer-launcher.vv')=>{// Create a data URL with the content and filenameconstdataURI=URL.createObjectURL(newFile(content,filename,{type: 'text/plain'}));// Create an anchor (link), assign the content and filename, then click itObject.assign(document.createElement('a'),{href: dataURI,download: filename}).click();// Release the memoryURL.revokeObjectURL(dataURI);};
(Perhaps there's some React stuff that can do some of these things automatically; I don't know.)
Explain what happens
The file has no extension.
On Google Chrome : "download"
On Firefox : "FHfpQ1UH"
On Vivaldi : "file"
With No extension, open the file directly in the browser (to not download it) didn't work because the association is with extension.
Version of Cockpit
cockpit-machines 325
Where is the problem in Cockpit?
Unknown or not applicable
Server operating system
Fedora
Server operating system version
41
What browsers are you using?
Firefox, Chrome, Other
System log
No response
The text was updated successfully, but these errors were encountered: