mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-15 04:44:36 +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
|
@ -104,6 +104,12 @@ class AttachmentFormType extends AbstractType
|
|||
'attr' => ['class' => 'form-control-sm'],
|
||||
'label_attr' => ['class' => 'checkbox-custom']]);
|
||||
|
||||
$builder->add('secureFile', CheckboxType::class, ['required' => false,
|
||||
'label' => $this->trans->trans('attachment.edit.secure_file'),
|
||||
'mapped' => false,
|
||||
'attr' => ['class' => 'form-control-sm'],
|
||||
'label_attr' => ['class' => 'checkbox-custom']]);
|
||||
|
||||
$builder->add('file', FileType::class, [
|
||||
'label' => $this->trans->trans('attachment.edit.file'),
|
||||
'mapped' => false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue