Commit 26e974b0 authored by git's avatar git Committed by Alex Andrascu

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
......@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment