Open toniorocks opened 7 years ago
Hi @toniorocks thanks for using this widget. Please, check this issue regarding file uploads in chunks: https://github.com/2amigos/yii2-file-upload-widget/issues/114
Unfortunately, the action handler provider is not done for chunked files. I'll write one when I have time.
Hi amigos,
Sorry for my bad english i have an issue with the upload widget, i can´t make it work with chuncked files in Yii2, if anybody of you can point me in the right direction i'll appriciate it.
This is my code so far:
<?= FileUploadUI::widget([ 'model' => $formModel, 'attribute' => 'archivo', 'url' => ['prueba-carga/trozos'], // your url, this is just for demo purposes, 'fieldOptions' => [ 'accept' => '.pdf' ], 'clientOptions' => [ 'maxChunkSize' => 2000000, //2 mb 'maxFileSize' => 100000000 //100 mb ], // Also, you can specify jQuery-File-Upload events // see: https://github.com/blueimp/jQuery-File-Upload/wiki/Options#processing-callback-options 'clientEvents' => [ 'fileuploaddone' => 'function(e, data) { console.log(e); console.log(data); }', 'fileuploadfail' => 'function(e, data) { console.log(e); console.log(data); }', ], ]); ?>
and in the model: `public function actionTrozos() {
But the file is corrupted.