estimado Posted May 3, 2015 at 03:24 PM Report Share #582368 Posted May 3, 2015 at 03:24 PM boas Estou a pensar em querer colocar no meu site um ficheiro para download, mas não queria que se pode-se fazer o download, mas sim apenas abrir! é possivel? Obrigado Visual Studio 2010 C# Link to comment Share on other sites More sharing options...
help Posted May 3, 2015 at 03:41 PM Report Share #582371 Posted May 3, 2015 at 03:41 PM Qual o formato do arquivo? Link to comment Share on other sites More sharing options...
estimado Posted May 3, 2015 at 03:44 PM Author Report Share #582373 Posted May 3, 2015 at 03:44 PM rar e m3u Visual Studio 2010 C# Link to comment Share on other sites More sharing options...
help Posted May 3, 2015 at 08:19 PM Report Share #582396 Posted May 3, 2015 at 08:19 PM A questão de abrir arquivo é relativo a visão do navegador. Arquivos compactados não pode ser "simplesmente abertos". Isso porque é um pacote com vários outros arquivos. Seria até uma falha do navegador abrir um pacote de arquivo sem antes verificar se há vírus ou arquivos maliciosos. Arquivos m3u se não me engano são lidos pelo media player, e também não é possível ser lidos pelo navegador como um arquivo .html Link to comment Share on other sites More sharing options...
estimado Posted May 4, 2015 at 10:09 AM Author Report Share #582425 Posted May 4, 2015 at 10:09 AM sim exacto, mas queria bloquear ou outra coisa do genero a operação de download do ficheiro Visual Studio 2010 C# Link to comment Share on other sites More sharing options...
help Posted May 4, 2015 at 11:09 AM Report Share #582427 Posted May 4, 2015 at 11:09 AM Coloca o arquivo como link. <a href="arquivo.rar">arquivo</a> A principio não vai pedir para ser feito o download, a não ser que clique sobre o link Link to comment Share on other sites More sharing options...
shumy Posted May 4, 2015 at 11:35 AM Report Share #582429 Posted May 4, 2015 at 11:35 AM Para abrir tem de obrigatoriamente efetuar download. Aqui há coisa de 2 anos fazia umas malhas de croché, depois fartei-me e fui para informática! Link to comment Share on other sites More sharing options...
estimado Posted May 4, 2015 at 01:27 PM Author Report Share #582433 Posted May 4, 2015 at 01:27 PM Para abrir tem de obrigatoriamente efetuar download. Não propriamente... Visual Studio 2010 C# Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now