Skip to main content
New Participant
Feb 1, 2021 7:20 AM UTC
Question

File Extension Blocking in File Upload Component.

Hi,

We have defined the list of file extensions which are to be allowed via admin console as shown below.

When we try to load any file which has an extension(png) that is not present in the admin console, it prompts an error message to the user as shown below which is expected.



Had anyone faced similar issue, or any inputs to overcome this?

Code snippet:

a!localVariables(
  local!files,
  a!fileUploadField(
    label: "Upload Document",
    value: local!files,
    saveInto: local!files,
    target: cons!TEST_UPLOAD_FOLDER
  )
)

3 replies

mikes0011
Brainy
Feb 1, 2021 3:40 PM UTC

This actually seems very similar to the error reported several months ago where the same thing happens but with an empty file, instead of a file with a disallowed extension.  I'm unclear if a fix was ever released for that. 

If this is causing you any sort of issues, I'd suggest raising a support case with the same details and screenshots you've provided here.

The Expression Guru
New Participant
Dec 2, 2021 10:16 AM UTC

Did you get any solution for this issue? 

mikes0011
Brainy
Apr 13, 2023 9:04 PM UTC

I can verify it still seems to be an issue - however from what I can tell, it doesn't actively block the submission of a form, even while the apparent validation error is showing up.

The Expression Guru