In article <59165610...@tiscali.co.uk>,So if I add a short BASIC Programme to the !run files in my applications:
John Williams (News) <UCE...@tiscali.co.uk> wrote:
In article <59165400...@waitrose.com>,
Chris Newman <cvj...@waitrose.com> wrote:
Interesting. Tim Hill's mimemap has...
application/x-spark Archive ddc .spk .lha .arj .lzh .hqx .uu .zoo
ie no &
But even more interesting it has:
application/zip Zip a91 .zip
application/x-zip Zip a91
which is what David was highlighting.
The & is not needed in MimeMap files - it is already understood.Ah! Thanks for the explanation.
--
Chris Newman
On 31 Mar 2021 as I do recall, svrsig wrote:
[snip]
Adding an entry: application/x-zip-compressed Zip a91 to the MimeMap
file on my Titanium means that zip files from my web site are now downloaded with the the right file type on that computer. That is
therefore the solution - update your MimeMap file to include this
entry.
I already have application/zip application/x-compress application/x-zip application/compress
- is there not a consistent MIME type, or do all servers implement
their own?
this will correct the user's MimeMap file.
In article <591654001fcvjazz@waitrose.com>, Chris Newman
<cvjazz@waitrose.com> wrote:
Interesting. Tim Hill's mimemap has...
application/x-spark Archive ddc .spk .lha .arj .lzh .hqx .uu .zoo
ie no &
But even more interesting it has:
application/zip Zip a91 .zip
application/x-zip Zip a91
In article <7a1bcd3c-3b7f-481f...@googlegroups.com>,The advice from ROOL (given on Sat, 15 Oct 2016 00:54:45 +0100)
svrsig <ch...@svrsig.org> wrote:
this will correct the user's MimeMap file.Using a program to add an entry to the end of the file, after the
catch-all */* entry is probably not wise.
--
Tim Hill
Webmaster, https://timil.com
websites : php : RISC OS
Is there a recommended way to 'merge' a new definition into a user's
MimeMap file (like Boot Merge or System update)? I feel reluctant to
do it without user consent.
So if I add a short BASIC Programme to the !run files in my applications:
10 : P=OPENUP("Boot:Choices.Default.Internet.Files.MimeMap")
20 : IF P=0 THEN P=OPENUP("Boot:Resources.!Internet.Files.MimeMap")
30 : SYS "MimeMap_Translate","application/x-zip-compressed" TO roft%
40 : IF P<>0 THEN
50 : IF roft%=&FFD THEN
60 : PTR#P=EXT#P
70 : BPUT#P,"application/x-zip-compressed Zip A91"+CHR$13
80 : ENDIF
81 : CLOSE#P
82 : ENDIF
83 : OSCLI("ReadMimeMap")
84 : END
this will correct the user's MimeMap file. Not quite sure about the syntax
of MimeMap_Translate as it is not in the PRM nor on the ROOL web site.
Going back upthread to your original problem, in investigating why the file downloads as different filetypes on different computers, the missing piece of the puzzle is what the web server is declaring the file to be in the HTTP header. That should determine which file type is mapped to in NetSurf, not the extension of the filename.
You need to examine the headers that the server is giving to the browser (the developer tools in most modern browsers will help with this). It could be that your web server needs reconfiguring as well.
On 14 May 2021 as I do recall,
Matthew Phillips wrote:
[snip]
Going back upthread to your original problem, in investigating why the file downloads as different filetypes on different computers, the missing piece of
the puzzle is what the web server is declaring the file to be in the HTTP header. That should determine which file type is mapped to in NetSurf, not the extension of the filename.
You need to examine the headers that the server is giving to the browser (the
developer tools in most modern browsers will help with this). It could be that your web server needs reconfiguring as well.
HTTP/1.1 200 OK
Content-Type: application/x-zip-compressed
Last-Modified: Wed, 31 Mar 2021 07:19:43 GMT
Accept-Ranges: bytes
ETag: "f994ed38fe25d71:0"
Server: Microsoft-IIS/10.0
X-Powered-By: ASP.NET
Date: Fri, 14 May 2021 08:25:33 GMT
Content-Length: 1166853
Which, as said above in the thread, is causing problems in that "application/x-zip-compressed" is not present in the MimeMap of those downloading it (unless they edit their MimeMap files).
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 293 |
Nodes: | 16 (2 / 14) |
Uptime: | 211:00:38 |
Calls: | 6,619 |
Calls today: | 1 |
Files: | 12,168 |
Messages: | 5,317,305 |