Hi,
I have an Async File Uploader control inside a Repeater which is inside an update panel.
I am uploading the file into ftp, so I am not uploading the video file, using SaveAs() method.
For uploading the file in ftp, I have this saveFile method which takes these four parameter: FileName, UploadPath, FTPUser, FTPPassword.
For this FileName, I have to send the full file path.
My UploadComplete event looks like this:
protected void AsyncVideoUpload_UploadedComplete(object sender, AjaxControlToolkit.AsyncFileUploadEventArgs e)
{
VideoPath = string.Empty;
if (AsyncVideoUpload.HasFile)
{
string filepath = e.filename;
UploadFile(filepath, "ftp://172.20.117.102", "test", "Value*12");
VideoPath = AsyncVideoUpload.PostedFile.FileName;
}
}
Please help.