jargoud / laravel-backpack-dropzone

Dropzone field for Laravel Backpack
MIT License
2 stars 1 forks source link

BUG: after uploading from a file it doesnt see it anymore when i edit the same item #6

Open TiesTheunissen opened 2 months ago

bastos71 commented 2 months ago

Hello :) could you please give details and steps to reproduce ? Thank you !

TiesTheunissen commented 2 months ago

yes. with this line:

        $this->crud->addField([
                'name' => 'file_name',
                'label' => 'Video',
                'type' => 'dropzone',
                'view_namespace' => 'dropzone::fields',
                'allow_multiple' => false, // false if missing key
                'config' => [
                    // any option from the Javascript library
                    'chunkSize' => 1024 * 1024 * 2, // for 2 MB
                    'chunking' => true,
                    'maxFilesize' => 400,
                ],
                'hint' => 'Max upload size is 400MB',
            ]);
       the file upload works perfectly on my recource.

-> this is that the dropzone sees the file and shows how big the file is.

when i edit the file the name of the file is viable but i dont see how big the file is