mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-01 14:04:30 +02:00
Generate internal filenames based on attachment name.
The filename of the uploaded file is now safed in the database.
This commit is contained in:
parent
eb1d8fd4e4
commit
67fe47bbb9
2 changed files with 4 additions and 14 deletions
|
@ -237,6 +237,7 @@ abstract class Attachment extends NamedDBElement
|
|||
public function setFilename(?string $new_filename): Attachment
|
||||
{
|
||||
$this->original_filename = $new_filename;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue