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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Upload seems to be successful but the file is not uploaded #449

Closed
herflis opened this issue Oct 29, 2019 · 1 comment
Closed

[BUG] Upload seems to be successful but the file is not uploaded #449

herflis opened this issue Oct 29, 2019 · 1 comment
Assignees
Labels
Milestone

Comments

@herflis
Copy link
Contributor

@herflis herflis commented Oct 29, 2019

馃悳 Bug Report

Upload progress indicates that the file was uploaded successfully, but it does not listed in the folder. There's a 'types is not allowed here' error is on the console and it seems that the progress indicator does not check these kind of error messages.

馃摝 Package / Application

@sensenet/sn-app

馃搩 Version

latest

馃憠 Steps To Reproduce

  1. Go to admin.sensenet.com and login with admin
  2. Create a DemoWorkspace into /Content
  3. Add a folder to the demoworkspace
  4. Upload an image into the folder
  5. If the upload progress is completed close the upload modal
  6. The current content is not the folder as it was selected before but its parent ws
  7. If you open the folder you can see that the uploaded file is not there
  8. Check the browser console for the error message
{
  "error": {
    "code": "NotSpecified",
    "exceptiontype": "Exception",
    "message": {
      "lang": "en-us",
      "value": "A content of this type cannot be created here."
    },
    "innererror": null
  }

馃 Expected behavior

The upload progress indicator should not displayed as completed since the file is not completely uploaded.
There should be the error message displayed on the upload modal.

@herflis herflis added this to the Sprint 196 milestone Oct 29, 2019
@herflis herflis modified the milestones: Sprint 196, Sprint 197 Nov 6, 2019
@B3zo0

This comment has been minimized.

Copy link
Member

@B3zo0 B3zo0 commented Nov 20, 2019

Note:
get error from response with repository.getErrorFromResponse

const error = await lastResponse.json()

snackbar with error message does not show up when dialog is open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can鈥檛 perform that action at this time.