Skip to content
Snippets Groups Projects
Commit 26e974b0 authored by git's avatar git Committed by Alex Andrascu
Browse files

Issue #2913362 by Dinu Rodnitchi, fietserwin, zheleong, Alex Andrascu, paolo...

Issue #2913362 by Dinu Rodnitchi, fietserwin, zheleong, Alex Andrascu, paolo m.: The destination upload does not exist
parent 26435189
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@ class DrupalBrowserUploadDestination extends PluginBase implements ReadableDesti
* {@inheritdoc}
*/
public function getFile($id) {
$file_upload = \Drupal::request()->files->get("files[$id]", NULL, TRUE);
$file_upload = \Drupal::request()->files->get("files", NULL, TRUE)[$id];
// Make sure there's an upload to process.
if (!empty($file_upload)) {
$out = new ReadableStreamBackupFile($file_upload->getRealPath());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment