On a successful import this method returns a PersistentResource object representing
the newly imported persistent resource.
public importUploadedResource ( array $uploadInfo, string $collectionName = self::DEFAULT_PERSISTENT_COLLECTION_NAME ) : |
||
$uploadInfo | array | An array detailing the resource to import (expected keys: name, tmp_name) |
$collectionName | string | Name of the collection this uploaded resource should be added to |
return | A resource object representing the imported resource |