Skip to content

[Bug]: WebUI upload target changes when navigating to another folder during active upload #58352

Description

@tuefue

⚠️ This issue respects the following points: ⚠️

Bug description

When uploading a folder with a large number of files via the web interface, changing the current directory by clicking on another folder causes the remaining files in the upload queue to be uploaded to the newly selected folder instead of the original target destination. This often leads to upload errors (due to missing subfolder structures) or files ending up in the wrong location.

Steps to reproduce

  1. Go to the "Files" app in the web interface.
  2. Navigate to folder "A".
  3. Start uploading a large folder (containing many files/subfolders) via drag-and-drop or the "+" menu.
  4. While the upload is still in progress, click on another folder "B" in the file list to navigate into it.
  5. Observe the upload progress: the remaining files will start appearing in the new directory instead of the one where the upload was initiated. Or error messages will appear if the directory structure does not match.

Expected behavior

The upload process should be locked to the initial target directory. Navigating through the WebUI should not change the destination path for an already active upload queue.

Nextcloud Server version

32

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.4

Web server

Nginx

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Additional info

Client:
OS: Linux (openSUSE Tumbleweed)
Browser: Firefox 147.0.2

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions