grocy/services
Jordy 23ccd05719
Get the image file type from the response content type (#2811)
* Get the image file type from the response content type
When using the external lookup tool, the file extention in the URL is used for the name of the downloaded image. However, some API's do not use file types in the resource name. If that is the case, the Content-Type of the request will now be used to define the file extention.

* Typo: Deleted last empty line on accident.

* Typo

* Apply code style and simplify this

---------

Co-authored-by: Bernd Bestel <bernd@berrnd.de>
2025-09-20 12:12:45 +02:00
..
ApiKeyService.php Upgraded PHP-CS-Fixer / applied optimized rules 2023-08-02 18:44:30 +02:00
ApplicationService.php Added database version to system info 2025-01-31 15:44:57 +01:00
BaseService.php Finalized frontend external barcode lookup implementation (references #158) 2025-01-12 13:58:47 +01:00
BatteriesService.php Return the battery object in endpoint /batteries (closes #2045) 2022-11-19 19:33:50 +01:00
CalendarService.php Reload calendar after color config changed (references #2368) 2023-11-04 14:18:51 +01:00
ChoresService.php Optimized chore on-time tracking (closes #2385) 2025-01-14 20:39:07 +01:00
DatabaseMigrationService.php Fixed produces product amount handling when consuming meal plan shadow recipes (references #2160) 2023-03-12 22:45:04 +01:00
DatabaseService.php Make it possible to round up shopping list and recipe ingredient amounts (closes #902, closes #2644) 2025-01-19 20:16:37 +01:00
DemoDataGeneratorService.php Finalized frontend external barcode lookup implementation (references #158) 2025-01-12 13:58:47 +01:00
FilesService.php Optimized Userfield save event handling (fixes #2458) 2025-01-13 21:00:06 +01:00
LocalizationService.php Optimized performance of GetProductDetails 2023-09-01 17:03:22 +02:00
PrintService.php Added the possibility to log executed SQL statements (DEV mode only) 2023-07-31 17:08:55 +02:00
RecipesService.php Optimized recipe missing ingredients shopping list item handling (closes #1890, closes #2134) 2025-01-19 21:31:36 +01:00
SessionService.php Optimized imports 2023-05-13 14:43:51 +02:00
StockService.php Get the image file type from the response content type (#2811) 2025-09-20 12:12:45 +02:00
TasksService.php fix syntax error (#2230) 2023-05-17 21:04:39 +02:00
UserfieldsService.php Added new Userfield type "Number (currency)" (closes #2276) 2023-09-01 17:48:46 +02:00
UsersService.php Cache multiple single-key user setting queries (closes #2323) 2023-09-01 17:02:36 +02:00