Lines Matching full:file
82 * What is the largest file a user may upload?
151 * Store an uploaded file (or URL), either to be added to a media object
156 * @return string The value to be stored in the 'FILE' field of the media object.
188 $uploaded_file = $request->getUploadedFiles()['file'] ?? null;
197 $file = $new_file;
199 $file = $uploaded_file->getClientFilename();
209 // Generate a unique name for the file?
210 if ($auto === '1' || $tree->mediaFilesystem()->fileExists($folder . $file)) {
213 $file = sha1((string) $uploaded_file->getStream()) . '.' . $extension;
217 … $tree->mediaFilesystem()->writeStream($folder . $file, $uploaded_file->getStream()->detach());
219 return $folder . $file;
221 … FlashMessages::addMessage(I18N::translate('There was an error uploading your file.'));
231 * Convert the media file attributes into GEDCOM format.
233 * @param string $file
240 …public function createMediaFileGedcom(string $file, string $type, string $title, string $note): st… argument
242 $gedcom = '1 FILE ' . $file;
244 if (str_contains($file, '://')) {
247 $format = strtoupper(pathinfo($file, PATHINFO_EXTENSION));
248 $format = Registry::elementFactory()->make('OBJE:FILE:FORM')->canonical($format);