Closed MaksTrader closed 3 years ago
Greetings. Faced with the same problem. Checked and tried everything.
It only occurs when the first image is initially loaded.
Afterwards, until the page reloads, the problem does not appear. Images are added and deleted without problem .
The model returns the same data for the first image as for the nex t.
If you check the file download in this way, it happens in all cases, but the file is downloaded and after reloading the page is display ed
But JSON returns empty values .
Debug your server code to check why initialPreview
and initialPreviewConfig
are sending null to the plugin.
If no files are available to send - send a blank json object (do not include initialPreview
and initialPreviewConfig
in the json response).
Problem solved. The tips were very helpful. Thank you very much.
It wasn't labeled. $preview = []; $config = [];
Prerequisites
master
branch of bootstrap-fileinput.Steps to reproduce the issue
1. 2. 3.
Expected behavior and actual behavior
When I follow those steps, I see...
I was expecting...
Environment
Browsers
Operating System
Libraries
Isolating the problem