get the ext on a upload result

Archived from the Transloadit support forum. Originally posted on July 2, 2011; details may be outdated, see our docs for current behavior. Original thread

I’m trying to get the ext of a file for the name.
e.g. “/${unique_prefix}.jpg”

${file.uploads.ext} gives me “?mine=image/jpeg”

${file.uploads.mime} give me nothing.

i would have hoped the ext would be in the meta
${file.meta.ext}

How can I get it? Thanks

{ "use

${file.ext} should work, let me know if it does.