Skip to content

uploadAsync false, stuck on Processing, js error #193

Open
@gszabo99

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

  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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions