Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   8.0    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
WebPolicyDelegate 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" )

See also


WebDownloadDelegate.textEncodingName   -   WebPolicyDelegate.Install

Feedback: Report problem or ask question.




Links
MBS Xojo tutorial videos