Skip to main content
Inspiring
August 28, 2024
Question

fileupload validation not working as expected

  • August 28, 2024
  • 3 replies
  • 7 views

Hello,

I have the following validations on a file upload. When I upload a wrong extension for testing, it is giving me a completely different validation message than what I have in my code and I'm not sure where it's getting it from. Also, it looks like each time I upload a new file, the earlier validation message does not get replaced with the new one and I have no point of reference to see where this is happening, if anyone knows how to fix these two issues I'd really appreciate it.

Here is the code. For reference, the constant being used (cons!GF_FILE_EXTENSIONS_UTILITY_PACKAGE_ARTIFACTS) has an array of all valid extensions (pdf, jpg, png, etc.)

3 replies

kumara0180
Participating Frequently
September 2, 2024

Did you checked admin console setting for permitted files allowed to be uploaded on your system 

venkatrea696188
Inspiring
September 2, 2024

Totally agree , Priority goes to  Allowed files/blocked file extensions in Admin console and than the validation on interface. https://docs.appian.com/suite/help/24.3/Appian_Administration_Console.html#file-upload

stefanhelzle0001
Brainy
September 2, 2024

Double post

 [mention:c4ad2945ab5f4f6297451c28ff60ed07:46448885d0e64133bbfbf0cd7b0fd6f7]