Update image caption

I know there is a method strapi.plugins.upload.services.upload.update() but how do you actually invoke it? I would like to update file’s caption and altText by its ID

the service you are looking for is:

You would call it with strapi.plugins.upload.services.upload.updateFileInfo(id, { name, alternativeText, caption }

2 Likes