Uploading multiples files of different types via a single upload preset

Comments

3 comments

  • Avatar
    Nick Dunn

    In my testing it looks like the upload preset with a video transform simply ignores non-video assets, so it doesn't seem broken. I just wondered if this was the "Cloudinary way" or if there's a better/different approach to upload presets we could try.

    0
    Comment actions Permalink
  • Avatar
    Danny Valentine

    Hi Nick.

    I'm Danny, and I'm one of the Developer Support Engineers here at Cloudinary.

    The approach you're taking is definitely the way I would suggest doing things if you want to use a single upload preset. Any eager transformations that simply can't be done due to the resource type (ie trying to apply video encoding to a PDF file) are ignored.

    Using separate upload presets for image/video/raw files is a fairly common use-case, but using a single preset for all three in the way that you have is perfectly acceptable and shouldn't cause any issues.

    Let us know if you have any further questions, and if you'd like to discuss any details that are exclusive to your account such as cloud name, upload preset name, etc, you would be welcome to raise a support ticket if you would prefer.

    Thanks,
    -Danny

    0
    Comment actions Permalink
  • Avatar
    Nick Dunn

    Thanks for validating this Danny.

    0
    Comment actions Permalink

Please sign in to leave a comment.