Hello, on Assistant does anyone know how to valida...
# suitescript
l
Hello, on Assistant does anyone know how to validate uploaded file extension before the assistant has finished? I tried to use form script, but the file field doesn't trigger any validation event. I also tried to do
getValue()
of the field from previous step and pull the file object from
request.files
, but no luck here either. Now I can validate the file on a finish screen, but then I can't do redirect to any previous step if validation fails...
c
Does SuiteAnswer 84073 help at all?
l
Thanks, but sadly no. I can upload the file fine, it's just before it's uploaded to the server I need to verify the extension, assuming there's yet another Assistant screen after file upload
c
A crappy workaround would be to upload, check whatever you need to check, then use
file.delete()
if it's wrong