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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload Files in Item shows 2 added Files when uploading 1 #10542

Closed
3 tasks done
kuuroo3 opened this issue Dec 16, 2021 · 10 comments · Fixed by #12082
Closed
3 tasks done

Upload Files in Item shows 2 added Files when uploading 1 #10542

kuuroo3 opened this issue Dec 16, 2021 · 10 comments · Fixed by #12082

Comments

@kuuroo3
Copy link

kuuroo3 commented Dec 16, 2021

Preflight Checklist

Describe the Bug

UI shows 2 added files when uploading just one file.

image

When adding multiple files, this happens for every file.

To Reproduce

image

I clicked on "Upload File" and chose 1 File to upload.

image

After saving it's just 1 File again.
image

Errors Shown

none

What version of Directus are you using?

9.2.2

What version of Node.js are you using?

inside Docker: 16.13.1

What database are you using?

Postgres 12

What browser are you using?

Vivaldi

What operating system are you using?

Windows

How are you deploying Directus?

Docker

@azrikahar
Copy link
Contributor

This may be related/regressed from the PR #10368 as well. Seems like Files interface worked on v9.2.1.

@kuuroo3
Copy link
Author

kuuroo3 commented Jan 3, 2022

After taking another look at my raw values it looks just like your demo in #10550
#10565 also happens at my end - is that fixed with your PR as well?

@azrikahar
Copy link
Contributor

Thanks for following up! Unfortunately I think that PR may not be the correct approach as the issue should stem from M2M relation (it's what Files interface uses under the hood), so we may need to look for a fix from that angle instead of being files-interface-specific.

@stx-chris
Copy link

Is there a workaround available for this behaviour? Our customers keep deleting files since they think they are duplicates. Thanks

@rijkvanzanten
Copy link
Member

rijkvanzanten commented Mar 25, 2022

Is there a workaround available for this behaviour? Our customers keep deleting files since they think they are duplicates. Thanks

I'm not aware of a configuration workaround. #12082 means to resolve this though, so a fix is underway 👍🏻

@elplaza
Copy link

elplaza commented Apr 12, 2022

Same issue for me with docker image directus:9.8.0:
screenshot-localhost_8056-2022 04 12-10_02_36

@hugoestevescastro
Copy link

This also happens to me on the latest community version

@kuuroo3
Copy link
Author

kuuroo3 commented Apr 20, 2022

This still doesn't seem to work right.
I checked out v9.9.0 and had a look at it. When I now add files nothing gets shown at all. Only in the raw section I can see that there were indeed files added. (Only when uploading files, chosing already existing files seems to be working)

image
{ "create": [], "update": [ { "applications_id": "+", "directus_files_id": { "id": "ea86482e-d0c1-489b-a40c-b859fdfd4751" } }, { "applications_id": "+", "directus_files_id": { "id": "b02809c5-2c1e-4a14-aa5e-8c15ee8bd17c" } } ], "delete": [] }

@azrikahar
Copy link
Contributor

@kuuroo3 That is indeed an actual bug on v9.9.0, but rest assured it was resolved recently in #12821 (not released yet as of now) 👍

Before that PR

chrome_TN93QpujZk.mp4

After that PR

chrome_W6jyebnphH.mp4

@kuuroo3
Copy link
Author

kuuroo3 commented Apr 20, 2022

@azrikahar nice! Thank you :)

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants