Searched refs:uploaded_file (Results 1 – 4 of 4) sorted by relevance
43 * @param UploadedFileInterface|null $uploaded_file45 public function __construct(UploadedFileInterface|null $uploaded_file) argument47 if ($uploaded_file === null) {53 switch ($uploaded_file->getError()) {90 $message = 'Error: ' . $uploaded_file->getError();94 $filename = $uploaded_file->getClientFilename() ?? '';
188 $uploaded_file = $request->getUploadedFiles()['file'] ?? null;190 if ($uploaded_file === null || $uploaded_file->getError() !== UPLOAD_ERR_OK) {191 throw new FileUploadException($uploaded_file);199 $file = $uploaded_file->getClientFilename();212 $extension = pathinfo($uploaded_file->getClientFilename(), PATHINFO_EXTENSION);213 $file = sha1((string) $uploaded_file->getStream()) . '.' . $extension;217 … $tree->mediaFilesystem()->writeStream($folder . $file, $uploaded_file->getStream()->detach());
73 foreach ($request->getUploadedFiles() as $key => $uploaded_file) {74 if ($uploaded_file->getError() === UPLOAD_ERR_NO_FILE) {78 if ($uploaded_file->getError() !== UPLOAD_ERR_OK) {79 throw new FileUploadException($uploaded_file);88 $filename = $uploaded_file->getClientFilename();127 $data_filesystem->writeStream($path, $uploaded_file->getStream()->detach());
2098 …message: '#^Parameter \#1 \$uploaded_file of class Fisharebest\\Webtrees\\Exceptions\\FileUploadEx…2494 …message: '#^Parameter \#1 \$uploaded_file of class Fisharebest\\Webtrees\\Exceptions\\FileUploadEx…3340 …message: '#^Parameter \#1 \$uploaded_file of class Fisharebest\\Webtrees\\Exceptions\\FileUploadEx…8662 …message: '#^Parameter \#1 \$uploaded_file of class Fisharebest\\Webtrees\\Exceptions\\FileUploadEx…