nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
26.73k stars 4k forks source link

[Bug]: Delayed visual feedback when uploading a large folder via drag and drop #46641

Open kesselb opened 2 months ago

kesselb commented 2 months ago

⚠️ This issue respects the following points: ⚠️

Bug description

There's a delay between dragging the folder and a visual feedback.

Steps to reproduce

  1. Have a folder with ~4000 images
  2. Drag the folder to Nextcloud
  3. It takes about 15 seconds until there's some visual feedback

Nextcloud 28:

9664472 28.webm

Nextcloud 27:

9664472 27.webm

Expected behavior

Feedback that the data is processed.

Installation method

None

Nextcloud Server version

master

Operating system

None

PHP engine version

None

Web server

None

Database engine version

None

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?

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

https://github.com/nextcloud/server/blob/5b7dcc1427e996a3154761877d1e11463ed4bef4/apps/files/src/services/DropServiceUtils.ts#L99

The above log message appears when you drop the folder and therefore we should be able to provide some visual feedback already (e.g. we processing the folder, stay tuned ....)

susnux commented 2 months ago

This is only drag and drop, not on folder upload using the menu?

kesselb commented 1 month ago

This is only drag and drop, not on folder upload using the menu?

Good point.

I don't think it's faster when using the upload files menu.

Screencast from 2024-07-22 17-07-22.webm

sorbaugh commented 1 month ago

cc @skjnldsv maybe a regression?

susnux commented 1 month ago

This is solved with nextcloud-upload v1.5.0 (once it is released). Tested it locally already and there is no delay anymore.

susnux commented 1 month ago

ref: https://github.com/nextcloud-libraries/nextcloud-upload/pull/1342

kesselb commented 1 month ago

Is the fix backportable to 28?

susnux commented 1 month ago

yes