Update fields based on uploaded JSON file

System Information
  • Strapi Version: v5.9.0
  • Operating System: Strapi Cloud
  • Database: Strapi Cloud
  • Node Version: v20.18.2
  • NPM Version: 10.8.2
  • Yarn Version: 4.5.0

I have a collection type with

  1. Media field, which I upload there ‘.json’ file, named “json”
  2. Number field named “assets”
  3. Number field named “duration”

I’d like to update the “assets” and “duration” fields (upon saving/publishing) based on the content in the json file.

How exactly I can do it? I guess I need to run some extension, any assistance would be appreciated.

Thanks!

Did you try using import/export plugin?

I was under the impression the import/export plugin isn’t compatible with Strapi v5.

Is there an import/export plugin for Strapi v5?

Cos that would awesome!

As far as I know, the team behind that plugin updated it recently.

Not sure I understand you. How will the import/export help me?
I need to update a field based on the content of another field…

Aren’t you talking about importing files?

No. I’d like to update a field based on another field’s content

In such case, You will need to use middlewares.