Custom URL for File type

System Information
  • Strapi Version: 3.5
  • Yarn Version:

I want to use signed URL’s from AWS S3 items in my media library. The signed URL changes with each user if they are authenticated. I have API that will retrieve the signed URL based on the file path which is what I would store in the Database.

The question I have is there a way to create a lifecycle hook or otherwise to override the URL field on the plugin-upload/model/File such that it would be executed every time files are included in any API request?

It appears to me that the current Find/FindOne only look to be executed when you call the upload/files API directly. What happens when you have an API (i.e Restaurants) that has an image asset of type “file” ?