Skip to content

Conversation

chladog
Copy link

@chladog chladog commented Aug 3, 2023

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:

        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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant