Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

not able to get uploaded file size in javascript

 
kavita vala
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to know the client document size before it uploaded to browser
I have a code given below.
Javascript function



and html code is



I get first alert('hi size check') but from second line it cant work
Please help me.

Thanks in advance
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by "it can't work"? What exactly happens? Are there error messages in the Console?
 
kavita vala
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No there is no error message but. But the second alert is not come so.
an error is in



line but i could not able to find
Is there any other code to write for use above statement
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hard to tell what's happening if you don't tell us what error is occurring. You're aware that this will only work in IE, right?
 
kavita vala
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ya but it cant work in ie also. Is there any other way that i should get the size of
Loaded file.

Please help me for this issue
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where did you learn about .sie()? Did you make it up thinking it would work?

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic