Julius Knorr
86cb011a5c
style: Fix php-cs issues
...
Signed-off-by: Julius Knorr <jus@bitgrid.net >
2024-12-17 09:22:00 +01:00
Luka Trovic
439c2b422e
fix phpcs
...
Signed-off-by: Luka Trovic <luka@nextcloud.com >
2024-09-26 17:12:53 +02:00
Ferdinand Thiessen
beb563e74e
refactor: Migrate away from deprecated ILogger interface to PSR-3
...
Mostly replace `ILogger` with `LoggerInterface` and some minor cleanup (constructor property promotion).
Some places used the deprecated `logException` this is easy to migrate by simply use the appropriate loglevel on the logger
and place the exception under the `exception` key in the context.
Also the manual checking of the configured log level is not needed, as this is already done by the logger.
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de >
2024-08-19 14:09:13 +02:00
Andy Scherzinger
be11113d32
chore: Add SPDX header
...
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de >
2024-05-07 15:51:49 +02:00
Julius Härtl
0985f24f57
chore: Fix php-cs-fixer errors
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2023-06-05 22:26:08 +02:00
Carl Schwan
44481e1c2a
Switch from OC::$server->get to OCP\Server::get
...
And add a bit more typing to some classes + psalm issues
Signed-off-by: Carl Schwan <carl@carlschwan.eu >
2022-05-12 10:55:36 +02:00
Vitor Mattos
4561887348
Add long comments with attachment
...
Signed-off-by: Vitor Mattos <vitor@php.rio >
2021-12-30 11:19:49 +01:00
Julius Härtl
9f7901519b
Switch to Content-Disposition attachment and check for sane mimetypes
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2021-03-04 08:17:28 +01:00
Julius Härtl
76a1cc0618
Always set self/blob csp when displaying attachments
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2020-04-24 20:01:46 +02:00
Julius Härtl
52febb396c
Fix php cs issues
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2020-04-22 19:57:19 +02:00
Jakob Röhrl
d27a5ac9ba
override attachment
...
Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de >
2020-03-11 12:08:23 +01:00
Jakob Röhrl
725f99d8b8
update attachment
...
Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de >
2020-03-11 12:08:04 +01:00
Jakob Röhrl
1e3ff41cb2
new exception
...
Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de >
2020-03-11 12:08:03 +01:00
Julius Härtl
aee5fb7a98
Only call fclose if resource is still available
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2018-11-08 18:55:48 +01:00
Julius Härtl
dcfb9f3903
Properly annotate exceptions thrown by services
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2018-08-15 21:15:19 +02:00
Julius Härtl
cb25643741
Fetch file from rootFolder instead of IAppData to use StreamResponse when displaying
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2018-07-05 18:42:33 +02:00
Julius Härtl
014f76b2fb
Provide resource of tmp file instead of putting all content in memory
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2018-06-25 17:55:40 +02:00
Julius Härtl
546928fb79
Throw proper StatusException
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2018-06-25 17:55:18 +02:00
Julius Härtl
7955a19149
Add some logging
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2018-06-19 18:00:06 +02:00
Julius Härtl
a83b50bb97
return empty result
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2018-06-19 18:00:06 +02:00
Julius Härtl
0f50f8d1d9
Use generic Exception
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2018-06-19 18:00:06 +02:00
Julius Härtl
5bc65a6eb3
Use object-src self/blob for pdf files
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2018-06-19 18:00:05 +02:00
Julius Härtl
581fa011e3
Implement updating files
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2018-06-19 18:00:05 +02:00
Julius Härtl
ee5a54a575
Allow to undo file deletions
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2018-06-19 18:00:04 +02:00
Julius Härtl
45c7241daf
Implement attachment backend with a first module for app data file upload
...
Signed-off-by: Julius Härtl <jus@bitgrid.net >
2018-06-19 17:59:00 +02:00