Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
5 replies
Subscribers
7 subscribers
Views
2575 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Hi All, Is there any way to validate empty file while we upload it on SAIL
simples
over 9 years ago
Hi All,
Is there any way to validate empty file while we upload it on SAIL Interface?
Appian returns '< 1 KB' as output for empty file or any file upto 100 bytes.
so how to validate a empty file?
Thanks in Advance.
OriginalPostID-176737
OriginalPostID-176737
Discussion posts and replies are publicly visible
0
abhi.jana
Appian Employee
over 9 years ago
One option would be to read the file contents and do a null check / length check. Text File Reader plugin -
forum.appian.com/.../summary
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Jordan McCollough
Appian Employee
over 9 years ago
Can you elaborate the use case or requirement? Have you considered using the "Required" parameter?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
simples
over 9 years ago
@abhi Jana - Thank you so much for help but file can be of any extension and can contain anything, i mean a docx file my contain image so in that case, this plugin will not help me.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
simples
over 9 years ago
@Jordan - file can be of any extension, but if any file, suppose a 'txt' file is uploaded but it does not contain any contents inside of it, i need to validate it as an empty file.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
abhi.jana
Appian Employee
over 9 years ago
The alternative approaches discussed in this post may be helpful -
forum.appian.com/.../e-141769
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel