Skip to content

Add File\Importer::importUploadedFile#6654

Merged
aembler merged 1 commit intoconcretecms:developfrom
mlocati-forks:import-uploaded-file
May 17, 2018
Merged

Add File\Importer::importUploadedFile#6654
aembler merged 1 commit intoconcretecms:developfrom
mlocati-forks:import-uploaded-file

Conversation

@mlocati
Copy link
Copy Markdown
Contributor

@mlocati mlocati commented May 16, 2018

What about adding a method to the file importer to import uploaded files?

That way, we could import an uploaded file simply with:

$importer = $app->make(Importer::class);
$fv = $importer->importUploadedFile($request->files->get('field_name'));
if (is_int($fv)) {
    $errorToShow = $importer->getErrorMessage($fv);
}

@aembler aembler merged commit e8e1905 into concretecms:develop May 17, 2018
@mlocati mlocati deleted the import-uploaded-file branch May 18, 2018 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants