Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uploadAsync false, stuck on Processing, js error #193

Open
9 of 15 tasks
gszabo99 opened this issue Jan 7, 2024 · 0 comments
Open
9 of 15 tasks

uploadAsync false, stuck on Processing, js error #193

gszabo99 opened this issue Jan 7, 2024 · 0 comments

Comments

@gszabo99
Copy link

gszabo99 commented Jan 7, 2024

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

  1. create an input widget with uploadAsync: false and set uploadUrl
  2. return the expected server response from the backend upload controller (uploadUrl)
  3. js error in the console and Processing stuck
  4. refresh page
  5. delete the uploaded images
  6. 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

Result
Képernyőfotó 2024-01-07 - 15 37 37

JS error
Képernyőfotó 2024-01-07 - 15 42 31

Server response
Képernyőfotó 2024-01-07 - 15 48 35

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant