The class must include a binary
attribute named blob
.
Params
file
(File
) – theFile
instance to be uploaded.attributes
(Object) – Optional custom attributes and their values of the new CMS object.
Throws
ArgumentError
– If the class has nobinary
attribute namedblob
,file
is not an instance ofFile
, orattributes
includes ablob
attribute.
Returns
A Promise
resolving to the created Obj
.
See also