Este site está com funcionalidades limitadas enquanto realizamos manutenção para melhorar sua experiência de uso. Se nenhum artigo resolver seu problema e você quiser fazer uma pergunta, nossa comunidade de suporte pode te ajudar em @FirefoxSupport no Twitter e /r/firefox no Reddit.

Pesquisar no site de suporte

Evite golpes de suporte. Nunca pedimos que você ligue ou envie uma mensagem de texto para um número de telefone, ou compartilhe informações pessoais. Denuncie atividades suspeitas usando a opção “Denunciar abuso”.

Saiba mais

Esta discussão foi arquivada. Faça uma nova pergunta se precisa de ajuda.

Why do I keep getting asked what to do when downloading a file?

  • 3 respostas
  • 1 tem este problema
  • 3 visualizações
  • Última resposta de sjd78

more options

When I go to download a virt-viewer connection file from my react app, I keep getting asked when to do even when I have "Do this automatically" checked. When downloading the same kind of file from other webapps, I do not get the dialog box.

How can I avoid the open file dialog box?

The app is using a dynamically generated tag that looks like this:

 <a download="console.vv" href="data:application/x-virt-viewer,___content____"></a>

Any ideas?

When I go to download a virt-viewer connection file from my react app, I keep getting asked when to do even when I have "Do this automatically" checked. When downloading the same kind of file from other webapps, I do not get the dialog box. How can I avoid the open file dialog box? The app is using a dynamically generated tag that looks like this: <a download="console.vv" href="data:application/x-virt-viewer,___content____"></a> Any ideas?
Capturas de tela anexadas

Alterado por sjd78 em

Todas as respostas (3)

more options

Here is what the dialog looks like

more options

Maybe specify the type also via the type attribute.

  • type="application/x-virt-viewer"
more options

I tried adding the type attribute on the a tag but the behavior is the same.

Although, when I change the default behavior to save the file, the dialog prompt doesn't appear. The prompt only seems to appear when "Do this automatically" is not checked or if it is checked, when the A's href is a dataurl.