validate image before upload on s3 bucket

default discord avatar
bhavikak
5 months ago
2

hello, i want to store image in s3 bucket with validate filename (ex. if image name = 'aws cloud' i want change it to 'aws-cloud') so i want replace space to desh(-) when image store in s3 bucket

  • discord user avatar
    jesschow
    Payload Team
    2 months ago

    Hi @bhavikak this sounds like something you could use a field hook for - did you find a solution here?

  • default discord avatar
    bhavikak
    2 months ago

    hello @jesschow i implement using field hook



    now it's working

Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.