jeudi 10 mars 2016

how to pass the one more array in blueimp fileupload and how to get the array in template-download div through laravel 5

$results = array();

foreach ($files as $file) {
    $filename = $file->getClientOriginalName();
    $name = $file->getClientOriginalName();
    $size = $file->getClientSize();

    $results[] = compact('name', 'size');
}

$fileListArray = array();

foreach($file_list as $fileList) {
    $fileUploadID = $fileList->file_upload_id;
    $fileName = $fileList->file_name;
    $fileDes = $fileList->file_description;

    $fileListArray[] = compact('fileUploadID', 'fileName', 'fileDes');
}

return array(
    'files' => $results
);

i want pass the $fileListArray also, and how i will get this array in template-dwonload div in blueimp file upload.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire