| Files that are sent from web servers to web browsers are encoded as a specific type. This encoding is known as MIME - which stands for Multipurpose Internet Mail Extensions - and we can use this to cause the web browser to behave differently depending on the encoding of each file it receives. MIME Types is the IBrowse² implementation of MIME control, and this section explains how you can use the preferences to perform, as you require.MIME Types are split into Main Types and Sub Types by a / character, and you will often see them referred to in this format, e.g. text/html (text being the Main Type, and html being the Sub Type). You may also enter a "generic" Main Type, which will match all Sub Types for a given Main Type. |
| e.g. |
text/* would be the generic Main Type for all forms of text, such as text/html, text/plain etc. Using such an entry, will allow any Sub Types not explicitly set, to still be matched by the generic Main Type entry. |
List This area displays all of the currently configured MIME Types. The list is sorted in two orders, the primary is alphabetically, and the secondary is priority. This means that any generic MIME Types, e.g. image/* will appear after specific MIME Types, e.g. image/png therefore giving a higher priority to specific MIME Type(s) first. |
Add This gadget is used to add a new entry to the MIME Type list. Click Add, then configure the MIME Type using the options below. |
Delete This gadget is used to delete an existing entry from the MIME Type list. Highlight the entry to be removed, then click Delete to remove the entry. |
MIME Type (Main Type) / (Sub Type) These gadgets are used to specify the MIME Type for this entry. The Main Type should be entered into the first string gadget, and the Sub Type into the second string gadget. |
Extension This gadget is used to enter the various extensions used by the MIME Type entry. You can enter multiple file extensions by separating them with a space. |
| i.e. |
The image/jpeg MIME Type could have files ending in .jpeg, .jpg or .jfif. They would be listed in this gadget as "jpeg jpg jfif" (without the quotes). |
 |
Some servers may incorrectly set the MIME Type of certain file, so in order to over come this, it is possible to force IBrowse² to override the MIME Type specified by the server, by appending an ! in front of that particular type, i.e. "lha lzh arj arc lhx !lzx zoo" (without the quotes). |
Action This gadget is used to inform IBrowse² what to do with this MIME Type. |
Internal viewer This option will cause IBrowse² to display the file within IBrowse² itself. |
 |
Setting this option for MIME Types that IBrowse² can't handle internally, may result in the file contents being displayed (e.g. loading an LHA archive into the Display Area), an unknown datatype error e.g. for image data it can't display internally, or the Specify action for window, where you may choose the option to perform. |
External viewer This option will cause IBrowse² to pass the file onto an external application, once the file has been downloaded from the web server. |
External viewer via pipe This option will cause IBrowse² to pass the file onto an external application, but will attempt to stream the data from the web server. |
 |
In order for the piping to work correctly, the application you are using must be aware and capable of accepting data via a pipe. For this reason, this option will not work in all situations e.g. trying to use datatypes. |
Save to disk This option will cause IBrowse² to download the file from the web server and save it to the hard disk for later use. The location of the file will depend on the Def. save dir setting. |
Ask user This option will cause IBrowse² to open the Specify action for window, asking the user what they would like to do with the file. |
Transfer URL This option will cause IBrowse² to pass the URL to the file in plain text to an external application. This will allow the application to perform an action on that URL, with no further action on the part of IBrowse². |
 |
When using this option in conjunction with external applications, they must be URL aware, i.e. accept a fully qualified URL as an argument, in order to operate correctly. |
|
Viewer This gadget is used to specify the external application that will be used by IBrowse² to view the file. |
Arguments This gadget is used to supply the arguments to the external viewer specified above. You can use the popup gadget to the right to select the arguments you require, or type directly into the string gadget. The arguments that you can pass to the application are: |
| %f |
This will be the local filename that IBrowse² generates once the file has been temporarily downloaded to pass onto the application. |
| %p |
This will be the name of the public screen IBrowse² is running on, and as such can be passed to applications that support public screens. |
| %r |
This will be the full URL of the file that IBrowse² will pass onto the application. |
| %n |
This will be the filename of the remote file, minus the path. |
| e.g. |
%r = http://www.somesite.com/somefile.lha %n = somefile.lha |
 |
When using %r in conjunction with external applications, they must be URL aware, i.e. accept a fully qualified URL as an argument, in order to operate correctly. |
|
Def. save dir This gadget is used to set the default download directory for this MIME Type. You can use the file requester gadget to the right to browse to the directory you require, or type directly into the string gadget. |
 |
Using this gadget may override the directory set in General » Directories » Download. |
| The cycle gadget to the right of the file requester gadget, gives you even more control over how this MIME Type is saved. |
Use default This option will override anything you enter into the General » MIME Types » Def. save dir gadget, and will force IBrowse² to use the directory set in General » Directories » Download. |
Use generic type This option will override anything you enter into the General » MIME Types » Def. save dir gadget, and will force IBrowse² to use the directory that has been set for the generic Main Type, e.g. images/* |
 |
If you set this option and do not have a generic Main Type set, then the file will be saved in the directory where IBrowse² is installed (PROGDIR:). |
Use This option will cause IBrowse² to use the directory entered in the General » MIME Types » Def. save dir gadget, when it opens the file requester asking for the name to save the file as. This will override Network » Download files automatically if it is enabled. |
Use (no req) This option will cause IBrowse² to use the directory entered in the General » MIME Types » Def. save dir gadget to save the file into, but you will not be issued a file requester asking for a file name. Instead, IBrowse² will use the name supplied by the web server you are saving the file from. This will override Network » Download files automatically if it is disabled. |
 |
IBrowse² 2.3 supports the Content-Disposition header, which is used by some servers to define the name that the file should be saved as when it is downloaded. |
 |
If the filename of the file you are downloading is longer than 30 characters, the file requester will still be displayed. This is a safety feature built in to IBrowse² to ensure the filename is suitable for the filesystem in use on your hard disk. The standard AmigaOS® FastFileSystem (FFS) is limited to 30 characters for filenames, and whilst other filesystems overcoming this limitation exist, there is no foolproof way to check which filesystem is in use. A suggestion to solve this has been put forward for a future release of IBrowse. |
|