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 4 months ago

bastos71 commented 4 months ago

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

TiesTheunissen commented 4 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

jargoud commented 3 weeks ago

Hello,

Where are your files stored? Are they on your local environment ?

We reproduced a similar bug when our files were stored on a distant storage (uploaded with ftp).

Thank you for your help!