Meta
The meta
method in Larupload is used to retrieve meta information about an attachment. This method can provide various types of information, such as the originalName
, size,
type
, mimeType
, duration
, width
, height
, and dominantColor
of the uploaded file. The method takes an optional argument that specifies which specific piece of meta information is to be retrieved. If no argument is provided, the method returns all available meta information for the attachment.
For example, to retrieve the size of an attachment named "file", you can use the following code:
Similarly, to retrieve the MIME type of the same attachment, you can use the following code:
If you want to retrieve all available meta information for the attachment, you can simply call the meta
method without any arguments, like this:
Last updated