(string) SaveFile($contents, $mimetypes, $name='file')
Arguments
(string) | $contents | The file contents. |
(string) | $mimetype | The mimetype of the file, e.g. application/pdf. |
(string) | $name | The name of the file in the file list. Default is 'file'. |
Saves the given contents as $name in the file list of the current object. The user must have edit grants for an existing pfile or add grants for a new pfile object.