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
12 replies
Subscribers
10 subscribers
Views
5867 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Check document size after selecting document from uploader in a form sail
emanueled8741
over 7 years ago
I have a form sail with a fileUploadField. When I select a file, I need to check the size and disable a button if is greather than 1MB.
The check is the following:
or(rule!APN_isBlank(save!value),document(save!value,"size")>1024000)
When a perform this check an error appear:
Interface Definition: Expression evaluation error: An error occurred while executing a save: Expression evaluation error at function 'document' [line 886]: Error evaluating function 'document' : Document Does Not Exist or has been Deleted
How can I resolve this problem?
Tanks
OriginalPostID-272088
Discussion posts and replies are publicly visible
Parents
0
ranveerr
over 7 years ago
Yes this is not the correct way to do validation for file upload, but if you need please try below code to get the SIZE in 17.1
a!fileUploadField(value: ri!document),contents.size
Make you that this will not work while implementation and testing in rule or UI. This will work only if UI is executed in SITES or TEMPO
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
ranveerr
over 7 years ago
Yes this is not the correct way to do validation for file upload, but if you need please try below code to get the SIZE in 17.1
a!fileUploadField(value: ri!document),contents.size
Make you that this will not work while implementation and testing in rule or UI. This will work only if UI is executed in SITES or TEMPO
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data