VB6>WebBrowser> How to get the NAME of the file that user downloads with RIGHT-click?-VBForums
Results 1 to 3 of 3

Thread: VB6>WebBrowser> How to get the NAME of the file that user downloads with RIGHT-click?

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2013
    Posts
    8

    Question VB6>WebBrowser> How to get the NAME of the file that user downloads with RIGHT-click?

    I am programming the VB6 application that uses the MS Webbrowser control. I have a question.
    How to detect the name of the file that user downloads from web site? (I mean not the source .html file, but the file that user downloads from site with right-click).

    In another words: user right-clicks the object on web form, selects the "Save target as:" and downloads file to his/her machine. It can be the .pdf document, .jpg picture, .zip file, .mp3 music etc. How my application can find out (and later to insert into database of downloaded files) the name of downloaded file and (if possible) location on local machine to where user downloaded the file?

    Thanks!
    Last edited by ma12; Mar 27th, 2014 at 11:58 AM.

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Posts
    17,852

    Re: VB6>WebBrowser> How to get the NAME of the file that user downloads with RIGHT-cl

    As far as I know you can't.

    This is by design. Browsers work very hard to isolate such things from the object model, historically to prevent potentially malicious script from interfering.

    Web scraping in general is a dubious endeavor. If a web site does not explicitly permit such activity in a statement of its terms of use then web scraping is implicitly prohibited - as a function of copyright law is nothing else.

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2013
    Posts
    8

    Re: VB6>WebBrowser> How to get the NAME of the file that user downloads with RIGHT-cl

    I.E. 9.0 and other browsers are actually provide users with "View downloads" feature. Just click "ctrl+J" in I.E. 9.0.

    I.e. this functionality is not forbidden. Question is however how to code this function in my application??...

    Name:  Pic 1.jpg
Views: 263
Size:  37.2 KBName:  Pic 2.jpg
Views: 255
Size:  16.7 KB

Tags for this Thread

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.