0

I'm using uploadify feature to upload various files to the server and even it working great for me. The one thing I'v stuck is - while getting source file full path.

As,I know in ASP.net File Upload control serves the source file like

<asp:FileUpload ID="FileUpload1" runat="server" />

string srcFilePath= FileUpload1.PostedFile.FileName;

Here my request, similarly how can we get the source file path via Uploadify ...

Thanks in Advance :)

2
  • are you asking for Client File path or Server file path??
    – Shashank
    Feb 14, 2014 at 12:29
  • @Shashank Client File path .... e.g: C:\Doc\xyz.doc Feb 14, 2014 at 12:51

1 Answer 1

0

the simple answer is that you cant. i havent used uploadify but due to security restrictions of the browser the full path of the file isn't sent to the server. None of the nwerner browsers send the full file name. only some of the older browsers(IE) support this.

It is independent of the plugin/control you are using

6
  • But the ASP.Net Upload control allows us to get the full source file path -- string srcFilePath=FileUpload1.PostedFile.FileName; then in the same way i wish to get posted file path :) Feb 14, 2014 at 12:53
  • have you checked that.. getting full path Feb 14, 2014 at 12:59
  • Yeah.. before posting a question,I have done a sample demo app with File Upload control.... and I was able to get srFilePath..:) Feb 14, 2014 at 13:04
  • what browser are you using? Feb 14, 2014 at 13:20
  • probably thats why.. try gaain using a new version of ie or chrome.. and you will know what im saying Feb 14, 2014 at 13:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.