The scenario:
User clicks a link in the browser, which is a generated link provided by a third party (ie - I have no access to their systems, etc).
This link is to a pdf file.
When clicked, the pdf is downloaded to the default download directory set for the browser.
- No user interaction occurs beyond the initial click.
- It appears they have their server set to force a download (I have found at least two ways of doing this - content-dsposition header OR octet-stream mime type)
Is there anyway that I can
- intercept the download and write the file to my chosen directory (ie - mivadata)
- use javascript or HTML 5 to change the behaviour and/or display the doc?
- Grab the pdf from the users download location and move it to the server?
- use some kind of Javascript or jQuery plugin to display the pdf?
Anything else?
FYI - using iframe to display this file does not work, neither does embed or object.
The file is downloaded regardless, and never displayed.
Desired outcome: display the pdf to the user so they can decide what to do.
User clicks a link in the browser, which is a generated link provided by a third party (ie - I have no access to their systems, etc).
This link is to a pdf file.
When clicked, the pdf is downloaded to the default download directory set for the browser.
- No user interaction occurs beyond the initial click.
- It appears they have their server set to force a download (I have found at least two ways of doing this - content-dsposition header OR octet-stream mime type)
Is there anyway that I can
- intercept the download and write the file to my chosen directory (ie - mivadata)
- use javascript or HTML 5 to change the behaviour and/or display the doc?
- Grab the pdf from the users download location and move it to the server?
- use some kind of Javascript or jQuery plugin to display the pdf?
Anything else?
FYI - using iframe to display this file does not work, neither does embed or object.
The file is downloaded regardless, and never displayed.
Desired outcome: display the pdf to the user so they can decide what to do.
Comment