How to identify Size of a PDF file in JavaScript?

Hi All,
In our ASP.NET, Ajax Based application, I have a requirement of uploading pdf files, and the need is to restrict the files to a specific file size.
It is possible to check the file with a ActiveX - FSO, which needs changes to Security settings of IE.

Is there a way to identify the size of the PDF files at the client side (Javascript) without using ActiveX objects?

Thanks in advance.
-Vidhee    
vidheeAsked:
Who is Participating?
 
MorcalavinConnect With a Mentor Commented:
It is possible to check for filesize using things like Java applets, since they run client size, but have more access to the filesystem, provided they are signed and the user allows them to be installed.
0
 
MorcalavinCommented:
Without using active-x, there is no way to identify the size of a file using javascript.
0
 
vidheeAuthor Commented:
thanks a lot for the reply.
Out of curious, i have a question.
There are so many upload tools available in the market which does evaluate the file size before upload. One of the example is the ComponentArt Upload tool.
Does that mean that there are some alternatives to evaluate the file information at the client side?
0
All Courses

From novice to tech pro — start learning today.