Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.1   7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4    Statistic  

WebPolicyDelegate.AddMimeType

Adds a mime type to the action list for the policy decisions.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
WebView 2.7 Yes No No No No

MBS( "WebPolicyDelegate.AddMimeType"; type; action )

Parameters

Parameter Description Example value
type MIME Type as text. "application/pdf"
action The action you want to be made. This can be "use" when file should be viewed, "download" if file should be downloaded and "ignore" if file should be ignored. "download"

Result

Returns OK or error.

Description

Adds a mime type to the action list for the policy decisions.

Examples

Makes sure all PDF files are downloaded:

MBS( "WebDownloadDelegate.Install" ; "web" )
MBS( "WebPolicyDelegate.AddMimeType"; "application/pdf"; "download" )

Add a type to download:

MBS( "WebPolicyDelegate.AddMimeType"; "unknown/exe"; "download" )

See also

Created 18th August 2014, last changed 11st August 2018


WebDownloadDelegate.textEncodingName   -   WebPolicyDelegate.Install

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins