ti8m / DocumentHandler

A phonegap plugin to handle documents (f.e. PDFs) loaded from a URL.
MIT License
30 stars 70 forks source link

Doesn't work for URL's that don't have an extention indicating file type, such as aspx scripts that download a PDF #19

Open jas67 opened 7 years ago

jas67 commented 7 years ago

For example: http://www.te.com/commerce/DocumentDelivery/DDEController?Action=showdoc&DocId=Specification+Or+Standard%7F408-10389%7FM1%7Fpdf%7FEnglish%7FENG_SS_408-10389_M1.pdf%7F2151493-1

It fails with "error=1".

If I give it a plain url ending in .pdf, it works fine.

arjunnaha commented 7 years ago

@jas67 I'm also in this situation. Did you manage to fix this issue?

jas67 commented 7 years ago

No, I did not.

On Dec 27, 2016, at 6:36 PM, Arjun Naha notifications@github.com<mailto:notifications@github.com> wrote:

@jas67https://github.com/jas67 I'm also in this situation. Did you manage to fix this issue?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/ti8m/DocumentHandler/issues/19#issuecomment-269398267, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AM6YL6GcRYW9J7lQAanNSOOvIw4OESG0ks5rMaDlgaJpZM4KJKUW.

abhisheksett commented 7 years ago

Facing same issue. If the absolute file path is not mentioned, getting error 1. Is this issue fixed?

Titella commented 7 years ago

The same happens to me

caffeine-code commented 7 years ago

Having the same issue trying to return a pdf via WebAPI controller and it fails. Fiddler calls look practically identical, but it fails with the same error code=1