Search
Method createResourceElement(Object category, String name, Object fileNameOrMime, String mimeType)
Create a new resource element.
Returns
ResourceElement
Arguments
| Name |
Type |
Description |
| category |
Object
|
The category. ResourceElementCategory or path (if the path does not exist it will be created) |
| name |
String
|
The name of the element |
| fileNameOrMime |
Object
|
(Optional) The full path filename (type:string) or the mime attachment (type:MimeAttachment) |
| mimeType |
String
|
(Optional) The mime type of the content (if a fileName is passed in argument) |