mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-02 09:14:48 +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
|
@ -12,7 +12,7 @@ parameters:
|
|||
use_gravatar: true # Set to false, if no Gravatar images should be used for user profiles.
|
||||
default_currency: 'EUR' # The currency that should be used
|
||||
media_directory: 'public/media/' # The folder where uploaded attachment files are saved
|
||||
secure_media_directory: 'media/' # The folder where secured attachment files are saved (must not be in public/)
|
||||
secure_media_directory: 'uploads/' # The folder where secured attachment files are saved (must not be in public/)
|
||||
db_version_fallback: '5.6' # Be sure to override this, in your .env with your real DB version
|
||||
global_theme: '' # The theme to use globally (see public/build/themes/ for choices). Set to '' for default bootstrap theme
|
||||
allow_attachments_downloads: true # Allow users to download attachments to server
|
||||
|
@ -84,6 +84,7 @@ services:
|
|||
App\Services\Attachments\AttachmentSubmitHandler:
|
||||
arguments:
|
||||
$allow_attachments_downloads: '%allow_attachments_downloads%'
|
||||
$mimeTypes: '@mime_types'
|
||||
|
||||
|
||||
App\EventSubscriber\TimezoneListener:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue