Skip to content

Conversation

@juliusknorr
Copy link
Member

This PR fixes file upload by dragging files to the browser when there is empty space below the file list. The file list is not stretched to 100% height, as possible search results need to be displayed right below the list. Therefore we should not cancel the drop action if the dropTarget is the main #app-content container.

To reproduce, drag a file below the #app-content-files container:
image

@juliusknorr
Copy link
Member Author

/backport to stable16

@juliusknorr
Copy link
Member Author

/backport to stable15

@juliusknorr
Copy link
Member Author

/backport to stable14

Copy link
Member

@violoncelloCH violoncelloCH left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested and works! 🎉

Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense

@MorrisJobke MorrisJobke added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels May 27, 2019
@MorrisJobke MorrisJobke merged commit bffb34a into master May 27, 2019
@MorrisJobke MorrisJobke deleted the bugfix/noid/drag-file-fix branch May 27, 2019 12:22
@backportbot-nextcloud
Copy link

backport to stable16 in #15754

@backportbot-nextcloud
Copy link

backport to stable15 in #15755

@backportbot-nextcloud
Copy link

backport to stable14 in #15756

@Schmuuu
Copy link

Schmuuu commented Jul 5, 2019

@juliushaertl are you able to upload files via drag and drop into the browser with NC16.0.2 now? I'm just asking because it stopped working for me after the update and I'm only guessing, that this might have to do with this fix.

The only error message I see is from NC in the browser:
grafik

In English: "You have no permission to upload or create files here."

So no matter if I drag the file into the upper or lower area, the upload fails. The only way the upload works right now is via the + button.

I'm using:
Firefox 67.0.4
NC 16.0.2
nginx 1.16

@kesselb
Copy link
Contributor

kesselb commented Jul 5, 2019

@Schmuuu #16238

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

Labels

4. to release Ready to be released and/or waiting for tests to finish bug feature: files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants