keystone-storage-adapter-s3
keystone-storage-adapter-s3 copied to clipboard
Dynamic path
I'm trying to assign unique paths for each object that's saved. Is there a way we can assign a dynamic path (perhaps based on the id of the object via callback) and then save that?
cover_image: {
label: "Cover Image",
type: Types.File,
storage: s3Storage(returnsId),
filename: function (item, file) {
return encodeURI(item._id + '-' + item.name);
}
}
same here including with localFileAdapter, any news on the subject?¿