Open chladog opened 1 year ago
This PR brings a feature of bucket property factory similar to current prefix factory allowing for dynamic bucket resolution based on incoming data doc e.g. mimeType:
bucket
prefix
s3: { bucket: ({ doc }) => doc.mimeType.startsWith('image') ? 'images-source' : 'public', ... }
Useful for when you need to organize files to different buckets based on mimeType, filename or size.
This PR brings a feature of
bucket
property factory similar to currentprefix
factory allowing for dynamic bucket resolution based on incoming data doc e.g. mimeType:Useful for when you need to organize files to different buckets based on mimeType, filename or size.