コード例 #1
0
ファイル: file.php プロジェクト: kosmosby/medicine-prof
    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;
    }
コード例 #2
0
ファイル: file.php プロジェクト: nooku/nooku-files
 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;
 }