Created
January 27, 2015 14:14
-
-
Save marcioalthmann/6227b60f4aeabfe542f7 to your computer and use it in GitHub Desktop.
Extraindo o nome do arquivo a partir de uma URL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var uri = new Uri("http://www.seusite.com/arquivos/arquivo.jpg"); | |
var nomeDoArquivo = string.Empty; | |
if(uri.IsFile) | |
nomeDoArquivo = Path.GetFileName(uri.LocalPath); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment