skuid attachment file name extension

  • 1
  • Idea
  • Updated 2 years ago
At moment I am using skuid “File Upload” component.

I am wondering if there is a way to get attachment file name extension so I can rename attachment file name with correct file extension as we cannot assure that everyone is only upload 1 type of file.

In skuid online tutorial,

http://help.skuid.com/m/components/l/102565-use-the-file-component-to-attach-files-to-a-record

.invoice is the file type for the attachment,  but our user may upload more than 1 file type .doc, .pdf, .jpg and etc. How can I dynamically get the file name extension of the attachment they upload?

Photo of jiz

jiz

  • 100 Points 100 badge 2x thumb

Posted 2 years ago

  • 1
Photo of Amy Dewaal

Amy Dewaal, Official Rep

  • 8,200 Points 5k badge 2x thumb
Jiz,

In the tutorial they are setting the name of the file and not the file extension (the file upload will respect the file extension already associated with the file). Are you wanting to override the file extension that the file already has?

Thanks!
Amy
Photo of jiz

jiz

  • 100 Points 100 badge 2x thumb
Hi Amy,

I don't think that the file upload respects the file extension when you rename the attachment. If you don't rename the attachment, then it does respects the extension. My request is how to rename the file and keep its extension.

Cheers,
Jiz
Photo of Vasu Deva

Vasu Deva

  • 100 Points 100 badge 2x thumb
Hi Amy, Any update on this..Vas
Photo of Amy Dewaal

Amy Dewaal, Official Rep

  • 8,200 Points 5k badge 2x thumb
Jiz and Vasu,

Currently there isn't a way to get the file extension of an uploaded file, although our devs are considering that feature for a future release.

Thanks!
Amy