Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Javascript only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
Javascript
How to validate file size in javascript
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
govind161986
New Member
Join Date:
Dec 2009
Posts:
21
#1
How to validate file size in javascript
Jan 22 '10, 04:58 PM
How do I validate a file size using javascript?
Thanks in advance,
Govind
gits
Recognized Expert
Moderator
Expert
Join Date:
May 2007
Posts:
5388
#2
Jan 22 '10, 05:01 PM
have a look
here
Comment
Post
Cancel
govind161986
New Member
Join Date:
Dec 2009
Posts:
21
#3
Jan 22 '10, 05:08 PM
Thanks Gits for replying I tried using that code but it gives me an error "ActiveXobj ect" is not defined.
Comment
Post
Cancel
gits
Recognized Expert
Moderator
Expert
Join Date:
May 2007
Posts:
5388
#4
Jan 22 '10, 05:16 PM
have you checked the last reply there ... even though this is only for IE ... so i would personally suggest to upload the file and check on the server ...
Comment
Post
Cancel
acoder
Recognized Expert
MVP
Join Date:
Nov 2006
Posts:
16032
#5
Jan 31 '10, 08:42 PM
Yep, if you want something reliable, check on the server. If you want something "instant" without a page reload, use Ajax.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment