Click here to Skip to main content
15,860,972 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
in file upload i load some file or images that files or images in save to ftp server.i wrote code like this
VB
File1.PostedFile.SaveAs("ftp://emsangserver/Source_safe_backup_drive/AlertImages/" + strfilename1)

but display error
The given path's format is not supported.
please give a solution for this

Thanks & With Regards.,
IdhayaRani.C
Posted
Updated 9-Jan-12 3:45am
v2

Might be problem because of your FileName path that represents the full path of the file on your local machine and not just the file name

File1.PostedFile.SaveAs(Server.MapPath("./") + FileName)
 
Share this answer
 
You will not be able to save directly to an FTP site. You will first have to save the file locally and then have to upload it with an FTP component.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900