Can I use a user variable as fl_attahcment filename?

Comments

3 comments

  • Avatar
    Stephen Doyle

    Hi Leo,

    It's not possible to use variables with the 'attachment' flag; Only some transformation options support variables, and there's a list in the documentation here: https://cloudinary.com/documentation/user_defined_variables#variable_types_and_supported_parameters

    To set the attachment name based on a value stored in the asset's context, there are two possible ways to make it work:

    If you need any examples of either method, or if there's anything else I can help with, please let me know

    Regards,

    Stephen

    0
    Comment actions Permalink
  • Avatar
    Leo Gernovski

    Thank you, Stephen! The information on client-side resource list is very useful.

    Leo.

    0
    Comment actions Permalink
  • Avatar
    Stephen Doyle

    You're welcome; please let us know if you need anything else

    -Stephen

    0
    Comment actions Permalink

Please sign in to leave a comment.