Skip to content

Uploaded folder is missing from the list when all files inside it fail #4186

Closed

Description

@AlexAndBear

Initial Checklist

  • I understand this is a bug report and questions should be posted in the Community Discussions
  • I searched issues and couldn’t find anything (or linked relevant results below)

Bug Description

When every file inside an uploaded folder fails, the folder was already created on the server but doesn't show up in the file list until reload. onUploadComplete in useFileUpload.ts returns early when nothing succeeded, so the current folder isn't refreshed.

Reproduction Steps

  1. Open a folder that holds old.txt
  2. Upload a folder fdir with two files while the file uploads fail (e.g. server error)

Expected Outcome

fdir shows up in the list, since it exists on the server.

Actual Outcome

The list only shows old.txt until reload.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions