Lines Matching defs:fn
425 * $data[1] fn: the file name of the uploaded file
460 $fn = mediaFN($id);
465 static fn($q) => preg_quote($q, "/"),
471 if (!preg_match('/\.(' . $regex . ')$/i', $fn)) {
476 $overwrite = file_exists($fn);
494 $data[1] = $fn;
530 * @param string $fn
537 function media_upload_finish($fn_tmp, $fn, $id, $imime, $overwrite, $move = 'move_uploaded_file')
543 $old = @filemtime($fn);
544 if (!file_exists(mediaFN($id, $old)) && file_exists($fn)) {
552 $filesize_old = file_exists($fn) ? filesize($fn) : 0;
554 if ($move($fn_tmp, $fn)) {
555 @clearstatcache(true, $fn);
556 $new = @filemtime($fn);
560 chmod($fn, $conf['fmode']);
562 media_notify($id, $fn, $imime, $old, $new);
564 $filesize_new = filesize($fn);