Open vega509 opened 4 years ago
Can you explain that in more detail? What's going wrong?
Some limitations of this add-on:
(1) If the site does not consistently assign a .csv file extension to the download, then my code will not be able to override the Content-Type provided by the server.
(2) Content-Disposition is handled separately from Content-Type, so if you want to allow viewing in a tab, you need to select that from the menu separately.
thanks for the quick reply, on the monitor page there is a link for a csv, clicking on it will bring up the "what should firefox do with this file" dialog. I have it open in excel and the file opens. when I go into the extensions log there is no csv reference, but there are others in the log, php and 2 html. the same result happens if I save the file. I've attached a screenshot
Hmm, one possible explanation for this would be that the file is being generated by a script in the page, and that there is no new retrieval from the server. The log only lists (the extension only detects) downloads from the web.
You could open the Network Monitor in Developer Tools before clicking the link to see whether there is a request generated. Maybe there's a background XHR request, or none at all. More info on Network Monitor:
thanks again Jefferson, unfortunately the network monitor did not reveal what is triggered by the cvs link. this has been happening since FF70. I find it strange that Chrome, the new Edge, Waterfox and IE11 don't have this same problem keeping the setting for file types. perhaps mozilla will fix it as there have been numerous bug reports over this for quite a while.
I am having problems adding csv files from https://ca.advfn.com thanks