feat: add mailing templates and mail the confirmed teamers of selected assignments
This commit is contained in:
1 parent
6c89f1b8a9
commit
e285646bb2
57 files changed
+3525
-31
No files matched your search
@@ -129,6 +129,23 @@ class UploadHandler
|
||||
return $manager->uploadFiles($files);
|
||||
}
|
||||
|
||||
/**
|
||||
* Where a file dropped in this session waits in the orphanage, or null once it is gone -
|
||||
* moved on by a save, or cleared away after the orphanage maxage (oneup_uploader.yaml).
|
||||
*/
|
||||
public function findOrphanageFilepath(string $uploader, string $filename): ?string
|
||||
{
|
||||
try {
|
||||
foreach ($this->orphanageManager->get($uploader)->getFiles()->files()->name($filename) as $file) {
|
||||
return $file->getPathname();
|
||||
}
|
||||
} catch (\Exception $e) {
|
||||
// the session's orphanage directory does not exist until its first upload
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public function removeUploadedFile(Upload $upload): void
|
||||
{
|
||||
$filepath = $this->getUploadFilepath($upload);
|
||||
|
||||
Reference in new issue
Block a user