mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-25 03:08:51 +02:00
Added an option to download a attachment via URL. Implemented secure attachments, which can not be accessed by URL and requires authentication.
This commit is contained in:
parent
d382021fee
commit
27a001b1d2
10 changed files with 266 additions and 5 deletions
|
@ -291,6 +291,9 @@ abstract class Attachment extends NamedDBElement
|
|||
*/
|
||||
public function setFilename(?string $new_filename): Attachment
|
||||
{
|
||||
if ($new_filename === "") {
|
||||
$new_filename = null;
|
||||
}
|
||||
$this->original_filename = $new_filename;
|
||||
return $this;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue