Can anyone suggest, with a SuiteLet that has a file upload field, how to know the file type to create it in the filecabinet?
I'd prefer to avoid using the filename suffix if possible.
b
battk
06/12/2020, 1:18 PM
although probably based on the filename, the type should already be on the file object from ServerRequest.files
n
NElliott
06/12/2020, 1:28 PM
i just realised my error, I used .type thanks @battk
b
battk
06/12/2020, 1:34 PM
Usually you just set the folder and save the file
👍 1
n
NElliott
06/12/2020, 3:55 PM
That's good to know thanks, I'm actually sending an email and the files are attachments, initially I thought I'd need to save the files in the filecabinet.