cliget icon indicating copy to clipboard operation
cliget copied to clipboard

Some files are not recognized by cliget

Open motatuc opened this issue 6 years ago • 4 comments

Hello,

Thanks for porting this to FF 57. Really appreciated.

Works good so far except I some files are not recognized, means cliget does not recognize the download even if the firefox-internal download-window shows up.

Two examples but this might happen with other files as well:

Link to check out these two examples:

http://streamyourfile.com/1k2kxepnrlny (links to a rar-file which contains a pdf, no copyright infringement ;))

and:

https://cdn.loc.gov/master/gmd/gmd4/g4701/g4701g/ct009133.tif (tif file, no copyright infringement either)

Thanks for looking into that.

motatuc avatar Nov 28 '17 21:11 motatuc

@zaidka: Did you already have a chance to take a look at this problem?

motatuc avatar Dec 11 '17 11:12 motatuc

I did. The server is responding with the header "content-type: text/plain" when it is in fact a binary RAR file. cliget ignores html and text responses because those are supposed to be handled by the browser. Not yet sure what can be done about this.

zaidka avatar Dec 11 '17 18:12 zaidka

What about just ignoring the header, putting everything from the save dialog into the download list and letting the user decide?

weberjn avatar Dec 11 '17 19:12 weberjn

@weberjn then every single page you visit will show up there. Not ideal I'd say.

zaidka avatar Dec 11 '17 21:12 zaidka