Created
June 24, 2013 23:49
-
-
Save tkMageztik/5854776 to your computer and use it in GitHub Desktop.
Guardar Archivo en servidor
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
if (AsyncFileUpload1.HasFile) | |
{ | |
//Copiar Archivo | |
string targetPath = @"\\servidor\carpeta_guardar_pdf\"; | |
string _archivo = targetPath + System.IO.Path.GetFileNameWithoutExtension(AsyncFileUpload1.FileName) + System.IO.Path.GetExtension(AsyncFileUpload1.FileName); | |
AsyncFileUpload1.PostedFile.SaveAs(_archivo); | |
string ruta = System.IO.Path.GetFileName(_archivo); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment