File

abstract class File : PluginElement

File of any type defined by mimeType. This class doesn't carry any guarantees of the file existing on the remote server, if you need to know whether it exists use HEAD request on the url.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
abstract val mimeType: String

Mime type of the file hosted on url. Don't assume all files are equal in type! Make sure to correctly categorize files based on their mime types while integrating them to your application.

Link copied to clipboard
abstract val name: String

Name of the original file which was used to upload to a remote server. This should be something either human-readable or user defined from when the user requested to upload this file.

Link copied to clipboard
abstract val url: String

Url for the file on a remote server. It can required authorization though there's no information or guarantee that it does. Use your representative's expertise.