Results 1 to 2 of 2

Thread: How to get absolute path for a downloaded file or to set default path for file downld

  1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    3
    Vote Rating
    0
      0  

    Default How to get absolute path for a downloaded file or to set default path for file downld

    Hi,

    We have a scenario, where we need to capture the absolute path for a downloaded file and save it into database.
    Currently we are using IE8, so we are not able to set a default path where the file should get downloaded all the time(we cannot change the download location by changing registry files due to security reason). I would appreciate if someone can suggest us something for following scenarios:

    1. Is there any way to capture the absolute path to which file got downloaded?
    2. Can we set default download path using ExtJS or something using JavaScript, which can help us in downloading the file to a specific directory.

    Thanks.

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    18,854
    Answers
    703
    Vote Rating
    908
      0  

    Default

    No, you can't, the browser can't access the local file system (at least, not without an ActiveX plugin).

    Imagine going to some random website and them being able to send files to your hard drive!
    Evan Trimboli
    Twitter - @evantrimboli

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •