Skip to content

[Feature]: Ability to Upload Yaml Files #921

Open
@cancan101

Description

@cancan101

Feature description

Currently trying to upload yaml fails. Only JSON look to be accepted:
Image

/**
* @Route("/import", methods={"POST"})
*
*/
public function importConfiguration(Request $request, ImportService $importService): JsonResponse
{
try {
$this->checkPermission(self::CONFIG_NAME);
$json = file_get_contents($_FILES['Filedata']['tmp_name']);
$configuration = $importService->importConfigurationJson($json);

this is despite yaml being the format we store the configs on file system.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions