Open
Description
Prerequisites
- I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
- The issue still exists against the latest
master
branch of yii2-widget-fileinput. - This is not an usage question. I confirm having read the widget documentation and demos.
- This is not a general programming / coding question. (Those should be directed to the webtips Q & A forum).
- This is not a source plugin (fileinput) issue. (Those should be directed to the [plugin issues repo] (maybe?)(https://github.com/fileinput/fileinput/search?q=&type=Issues)).
- I have attempted to find the simplest possible steps to reproduce the issue.
- I have included a failing test as a pull request (Optional).
Steps to reproduce the issue
- create an input widget with uploadAsync: false and set uploadUrl
- return the expected server response from the backend upload controller (uploadUrl)
- js error in the console and Processing stuck
- refresh page
- delete the uploaded images
- upload again the same files and it will be okay, no problem, sucessful upload client and server side
Expected behavior and actual behavior
When I follow those steps, I see...
JS error in the console and the progressbar stuck on Processing but the files are uploaded successfully to the server
But if Im refreshing the page then deleting the images then upload again it will be okay and no problems at all
I was expecting...
successful upload server and client side
Environment
Browsers
- Google Chrome
- Mozilla Firefox
- Internet Explorer
- Safari
Operating System
- Windows
- Mac OS X
- Linux
- Mobile
Libraries
- jQuery version: v3.7.1
- yii2-widget-fileinput version: v1.1.1
Metadata
Assignees
Labels
No labels