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
6 replies
Subscribers
7 subscribers
Views
5738 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Query on File Size Limit
joanneh
over 8 years ago
While creating the File Upload function in ui, may I know if there is anyway to SET PARTICULAR LIMIT to the size of file being upload?
Thanks.
OriginalPostID-233969
Discussion posts and replies are publicly visible
Parents
0
Mike Schmitt
Certified Lead Developer
over 8 years ago
@kdimitrov's suggestion is probably the way to go for this. I would like to expand on it and point out that, when the filesize is accessed this way, the result is actually a text value, and its context changes depending on the size, i.e. with different suffixes like "kb", "mb", etc. The best way to handle this, I believe, would be to write a separate function in an expression rule where the various possibilities are parsed and converted to an integer value of bytes, since then that can be easily compared to a constant, etc.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Mike Schmitt
Certified Lead Developer
over 8 years ago
@kdimitrov's suggestion is probably the way to go for this. I would like to expand on it and point out that, when the filesize is accessed this way, the result is actually a text value, and its context changes depending on the size, i.e. with different suffixes like "kb", "mb", etc. The best way to handle this, I believe, would be to write a separate function in an expression rule where the various possibilities are parsed and converted to an integer value of bytes, since then that can be easily compared to a constant, etc.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data