Jan Böhmer
6b9c125de4
Added console command to sanitize SVG files
2025-05-18 22:38:43 +02:00
Jan Böhmer
2c4f44e808
Sanatize SVG files when uploading
2025-05-18 21:00:19 +02:00
Jan Böhmer
2d7f88522a
Improved attachment download compatibility
...
Added more headers to make it appear more like a browser request, and try to use TLS1.3, if we get a 403 (which is useful for digikey).
Commit cherry picked from @Treeed
2025-03-23 19:51:21 +01:00
Treeed
29f92d9bd3
Split attachment paths ( #848 )
...
* fixed attachment statistics for sqlite
* Split attachment path into internal and external path, so the external source URL can be retained after a file is downloaded
* Make internal and external path for attachments nullable, to make clear that they have no internal or external path
* Added migrations for nullable columns for postgres and mysql
* Added migration for nullable internal and external pathes for sqlite
* Added translations
* Fixed upload error
* Restrict length of filename badge in attachment edit view
* Improved margins with badges in attachment edit
* Added a link to view external version from attachment edit
* Let media_url stay in API attachments responses for backward compatibility
---------
Co-authored-by: jona <a@b.c>
Co-authored-by: Jan Böhmer <mail@jan-boehmer.de>
2025-02-22 17:29:14 +01:00
Jan Böhmer
20f32c7f12
Applied rector suggestions
2024-06-22 00:31:43 +02:00
Jan Böhmer
0d9c86fcd3
Added brackets around if body
2024-03-11 22:24:21 +01:00
Frank Fenor
5454bb5b07
Avoid throwing an exception if Content-Disposition header doesn't exist or contains illegal things
2024-03-11 19:16:01 +01:00
Jan Böhmer
d49bb1f4b5
Removed unused import statements
2024-03-03 20:34:36 +01:00
Jan Böhmer
42e604245c
Fixed some inspection issues
2024-03-03 19:57:31 +01:00
Jan Böhmer
3585b8a56a
Adapter attachment upload forms to the new system
2024-03-03 18:52:06 +01:00
Jan Böhmer
0c33059c4e
Allow to upload files to attachments by passing a base64 encoded file
2024-03-03 18:40:35 +01:00
Jan Böhmer
dbff543fa8
Remove an attachment as preview image of an element, if it is not an image anymore through a change
2023-11-27 22:59:02 +01:00
Jan Böhmer
08bd4d54e3
Fix exception if uploading a new file for an already existing attachment
2023-11-27 22:48:18 +01:00
Jan Böhmer
05e9b63f89
Fixed exception, when downloading an attachment file, which does not have a usable extension
2023-11-27 18:13:55 +01:00
Jan Böhmer
0af5a58dbe
Renamed Storelocation entity to StorageLocation
2023-09-04 22:57:40 +02:00
Jan Böhmer
e8771ea118
Fixed some more phpstan issues
2023-06-18 00:00:58 +02:00
Jan Böhmer
6a2ff9d153
Added declare strict types to all files
2023-06-11 18:59:07 +02:00
Jan Böhmer
5629215ce4
Use imports instead of FQNs
2023-06-11 15:00:28 +02:00
Jan Böhmer
7ee01d9a05
Applied rector with PHP8.1 migration rules
2023-06-11 14:17:19 +02:00
Jan Böhmer
d04d743520
Fixed typos
2023-04-15 23:14:53 +02:00
Jan Böhmer
29d1d49aca
Fixed some more inspection issues
2023-04-15 22:05:29 +02:00
Jan Böhmer
27de5ae387
Fixed static analysis issue
2023-03-02 23:57:32 +01:00
Jan Böhmer
e0635f7ead
Show maximum allowed file size below the upload field for attachments
2023-03-02 23:38:23 +01:00
Jan Böhmer
ce3cecabaf
Save project attachment files under "project/" instead of "device/"
2023-02-12 20:54:53 +01:00
Jan Böhmer
5f5c06d6e9
Fixed problems with attachments on label profiles.
2023-02-03 23:18:14 +01:00
Jan Böhmer
855b3070bb
Fix exception when creating an attachment without an file.,
2022-12-18 20:55:50 +01:00
Jan Böhmer
0c7ec9f0c7
Added some basic DB fields for the new project system
2022-12-18 20:34:25 +01:00
Jan Böhmer
c6f1758a18
Fixed static analysis
2022-12-18 18:14:48 +01:00
Jan Böhmer
14bbe3d6d6
Rename unsafe file extensions of attachments to prevent XSS and server side code injection.
2022-12-18 18:11:44 +01:00
Jan Böhmer
68462185ba
Removed old GPLv2 copyright header
2022-11-29 22:28:53 +01:00
Jan Böhmer
51e05a8669
Use typed properties
2022-09-18 22:59:31 +02:00
Jan Böhmer
d0b1024d80
Fixed code style.
2020-08-21 21:36:22 +02:00
Jan Böhmer
90d3032924
Fixed PHPStan issues.
2020-06-07 16:33:31 +02:00
Jan Böhmer
1b06203ca6
Fixed file extension validation for attachments.
...
This fixes issue #63 .
2020-06-01 15:55:34 +02:00
Jan Böhmer
9e8771a4ee
Changed license to AGPL3+
2020-02-22 18:14:36 +01:00
Jan Böhmer
15957203af
Fixed an exception when moving an attachment to private folder.
2020-02-10 22:46:05 +01:00
Jan Böhmer
388e847b17
Applied symplify rules to codebase.
2020-01-05 22:49:00 +01:00
Jan Böhmer
f861de791f
Applied code style rules to src/
2020-01-05 15:46:58 +01:00
Jan Böhmer
9a7223a301
Fixed code style.
2020-01-04 20:24:09 +01:00
Jan Böhmer
e557bdedd5
Added an PHP CS fixer config file and applied it to files.
...
We now use the same the same style as the symfony project, and it allows us to simply fix the style by executing php_cs_fixer fix in the project root.
2019-11-09 00:47:20 +01:00
Jan Böhmer
787e498586
Updated copyright headers.
2019-11-01 13:40:30 +01:00
Jan Böhmer
c955a3a221
Moved attachment related services into their own namespaces
2019-10-19 23:29:51 +02:00
Jan Böhmer
63dc22f524
Allow to move a attachment to secure location (and back).
2019-10-19 19:30:16 +02:00
Jan Böhmer
9385d28e40
Uploading now works everywhere. Show an flash message if the download fails.
2019-10-19 18:50:17 +02:00
Jan Böhmer
27a001b1d2
Added an option to download a attachment via URL. Implemented secure attachments, which can not be accessed by URL and requires authentication.
2019-10-19 18:42:06 +02:00
Jan Böhmer
d382021fee
Moved attachment form submit logic to a seperate service.
2019-10-19 17:13:13 +02:00