$get mime type

Allows you to get the MIME content-type of a file.


Example

Running this code will create a "UI open file" button above the UBot browser, which is associated with the "#Open File" variable. Then, the MIME type will be shown in the UBot browser after opening a file with the "UI open file" button.

This will be shown on the UBot browser, indicating that the MIME content type is "text/plain".

ui open file("Open File",#Open File)
load html($plugin function("Data and Files Automation.dll", "$get mime type", #Open File))

Was this helpful?

Previous Article

$get folders

Next Article

$get text between