craftercms / craftercms

Parent project for Crafter CMS. Issue tracking across all repositories and global builds.
GNU General Public License v3.0
282 stars 98 forks source link

Using File Upload from Desktop Datasource throws UI failure when Dialogue is open and closed #6697

Open AndyReiter opened 3 weeks ago

AndyReiter commented 3 weeks ago

Duplicates

Latest version

Describe the issue

An issue has been found in the control/datasource to upload Files from desktop, if the user cancels the upload more than once and finally uploads an image or item successfully, then an error appears and confuses the author. The error appears in the dialog the same number of times that the upload was cancelled, and even when the upload was successful, the message is shown.

Steps to reproduce

Steps:

  1. Create a site based on Editorial
  2. Go to Project Tools > Content Types
  3. Edit content type Home PAge
  4. Add a datasource to upload files (File Uploaded from desktop)
  5. Add an Item selector field and choose the previous created DS as file manager.
  6. Save
  7. Go to Sidebar and edit the Home Page
  8. Choose upload a file and cancel the upload several times, take note of the number of times.
  9. Then finally upload a file successfully, and you will see an error repeated times.

Relevant log output

N/A

Screenshots and/or videos

https://www.loom.com/share/77771684c65b41a0bdeb99556a568edb?sid=e41a12db-9845-498e-8165-5a50307f6870