Exemplo n.º 1
0
	/**
	 * Adds an uploaded file into the Storage.
	 *
	 * @param array $uploadedFileData contains information about the uploaded file given by $_FILES['file1']
	 * @param string $conflictMode possible value are 'cancel', 'replace'
	 * @return File The file object
	 */
	public function addUploadedFile(array $uploadedFileData, $conflictMode = 'cancel') {
		return $this->storage->addUploadedFile($uploadedFileData, $this, $uploadedFileData['name'], $conflictMode);
	}
Exemplo n.º 2
0
 /**
  * Adds an uploaded file into the Storage.
  *
  * @param array $uploadedFileData contains information about the uploaded file given by $_FILES['file1']
  * @param string $conflictMode a value of the \TYPO3\CMS\Core\Resource\DuplicationBehavior enumeration
  * @return File The file object
  */
 public function addUploadedFile(array $uploadedFileData, $conflictMode = DuplicationBehavior::CANCEL)
 {
     return $this->storage->addUploadedFile($uploadedFileData, $this, $uploadedFileData['name'], $conflictMode);
 }