So I was able to figure out a little more. I went into my node_modules where the plugin code was for the S3 provider and I was able to add in this code to prevent the variant file uploads. Basically just returning null if it’s a variant instead of the original image.
upload(file, customParams = {}) {
if(['large', 'medium', 'small', 'thumbnail'].some(format => file.name.includes(format))) {
return
}
// ...
}
From what I could tell, it’s not the provider / plugin that is creating these variants, it’s Strapi that calls this Upload function 5 times with different values for the “file” parameter pertaining to the various formats/variants.
Since this is a Strapi functionality, I think this should be documented somewhere and have the ability to turn it off/on and customize it more if necessary. Maybe there is a way already since I see there is a “customParams” parameter, but there isn’t any documentation pertaining to this that I’ve seen.
Looking forward to hearing someone’s response to this! This is my quick hack for now.