public function getRequest() { $request = parent::getRequest(); // This is used to circumvent the URL size exceeding 2k bytes problem for file counts in uploader if ($request->query->view === 'files' && $request->data->has('name')) { $request->query->name = $request->data->name; } return $request; }
public function getRequest() { $request = parent::getRequest(); // This is used to circumvent the URL size exceeding 2k bytes problem for file counts in uploader if ($request->query->view === 'files' && $request->data->has('name')) { $request->query->name = $request->data->name; } // This is used in Plupload to set the folder in the request payload instead of the URL if (!$request->query->has('folder') && $request->data->has('folder')) { $request->query->folder = $request->data->folder; } return $request; }