Allow to upload files to attachments by passing a base64 encoded file

This commit is contained in:
Jan Böhmer 2024-03-03 18:40:35 +01:00
parent 0824e11570
commit 0c33059c4e
6 changed files with 261 additions and 32 deletions

64
composer.lock generated
View file

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "6c3d6e309f579d6683344fead9a86d50",
"content-hash": "d262b7af88fd38fff57c486ce7f61cbe",
"packages": [
{
"name": "api-platform/core",
@ -2904,6 +2904,68 @@
],
"time": "2023-12-03T20:05:35+00:00"
},
{
"name": "hshn/base64-encoded-file",
"version": "v5.0.1",
"source": {
"type": "git",
"url": "https://github.com/hshn/base64-encoded-file.git",
"reference": "54fa81461ba4fbf5b67ed71d22b43ea5cc8c8748"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/hshn/base64-encoded-file/zipball/54fa81461ba4fbf5b67ed71d22b43ea5cc8c8748",
"reference": "54fa81461ba4fbf5b67ed71d22b43ea5cc8c8748",
"shasum": ""
},
"require": {
"php": "^8.1.0",
"symfony/http-foundation": "^5.4 || ^6.0 || ^7.0",
"symfony/mime": "^5.4 || ^6.0 || ^7.0"
},
"require-dev": {
"phpunit/phpunit": "^9.0.0",
"symfony/config": "^5.4 || ^6.0 || ^7.0",
"symfony/dependency-injection": "^5.4 || ^6.0 || ^7.0",
"symfony/form": "^5.4 || ^6.0 || ^7.0",
"symfony/http-kernel": "^5.4 || ^6.0 || ^7.0",
"symfony/serializer": "^5.4 || ^6.0 || ^7.0"
},
"suggest": {
"symfony/config": "to use the bundle in a Symfony project",
"symfony/dependency-injection": "to use the bundle in a Symfony project",
"symfony/form": "to use base64_encoded_file type",
"symfony/http-kernel": "to use the bundle in a Symfony project",
"symfony/serializer": "to convert a base64 string to a Base64EncodedFile object"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "5.x-dev"
}
},
"autoload": {
"psr-4": {
"Hshn\\Base64EncodedFile\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Shota Hoshino",
"email": "sht.hshn@gmail.com"
}
],
"description": "Provides handling base64 encoded files, and the integration of symfony/form",
"support": {
"issues": "https://github.com/hshn/base64-encoded-file/issues",
"source": "https://github.com/hshn/base64-encoded-file/tree/v5.0.1"
},
"time": "2023-12-24T07:23:07+00:00"
},
{
"name": "imagine/imagine",
"version": "1.3.5",