Skip to main content
Inspiring
Aug 28, 2024 5:17 PM UTC
Question

fileupload validation not working as expected

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
Sep 2, 2024 2:49 PM UTC

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

venkatrea696188
Inspiring
Sep 2, 2024 2:55 PM UTC

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
Sep 2, 2024 2:52 PM UTC

Double post

 [mention:c4ad2945ab5f4f6297451c28ff60ed07:46448885d0e64133bbfbf0cd7b0fd6f7]