The Wayback Machine - https://web.archive.org/web/20220309172527/https://github.com/directus/directus/issues/12049
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

File meta aren't updated on file update #12049

Open
3 tasks done
Dominic-Marcelino opened this issue Mar 9, 2022 · 2 comments
Open
3 tasks done

File meta aren't updated on file update #12049

Dominic-Marcelino opened this issue Mar 9, 2022 · 2 comments

Comments

@Dominic-Marcelino
Copy link
Contributor

@Dominic-Marcelino Dominic-Marcelino commented Mar 9, 2022

Preflight Checklist

Describe the Bug

If you update a fiele (e.g crop) the file size changes. The file-meta aren't updated and stay the same.

To Reproduce

  • Upload a file
  • Check file size in directus and on system
  • Edit the file in directus (e.g crop drastically)
  • View file size on system and in directus
  • --> The file is way smaller now, but directus doesn't updates the file

Errors Shown

No response

What version of Directus are you using?

9.0.6

What version of Node.js are you using?

16.14

What database are you using?

MySql 8

What browser are you using?

Chrome

What operating system are you using?

macOs

How are you deploying Directus?

locally

@benhaynes
Copy link
Sponsor Member

@benhaynes benhaynes commented Mar 9, 2022

Good catch! I wonder if the same things happens when you replace a file asset?

@rijkvanzanten
Copy link
Member

@rijkvanzanten rijkvanzanten commented Mar 9, 2022

Good catch! I wonder if the same things happens when you replace a file asset?

The app editing experience uses the file replace under the hood, so yes

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