wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes not able to get uploaded file size in javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "not able to get uploaded file size in javascript" Watch "not able to get uploaded file size in javascript" New topic
Author

not able to get uploaded file size in javascript

kavita vala
Ranch Hand

Joined: Jul 22, 2010
Posts: 42
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

Joined: Oct 14, 2008
Posts: 1337
What do you mean by "it can't work"? What exactly happens? Are there error messages in the Console?
kavita vala
Ranch Hand

Joined: Jul 22, 2010
Posts: 42
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

Joined: Oct 14, 2008
Posts: 1337
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

Joined: Jul 22, 2010
Posts: 42
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

Joined: Nov 08, 2001
Posts: 15376
    
    6
Where did you learn about .sie()? Did you make it up thinking it would work?

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: not able to get uploaded file size in javascript
 
Similar Threads
problem when integrating jspell with tinyMCE editor
JSF with fileupload and iframe
jQuery not working on page
Need help with Jquery
preview of an image for uploading in firefox