0

I know File API of HTML5 is not supported in any version of IE.But is there any work around to get file information (size,type) before uploading it to server using javascript. I need to check size of file before uploading it. File Api does the work for me, but not for IE. I need it to support for IE as well

1
  • Only File API can get the file information from file input elements. There's no other way except via plugin, if a web browser doesn't support it yet, really. Commented Nov 5, 2012 at 19:09

1 Answer 1

1

In pure JS it is not possible.

Javascript does not have access to local files, due security reasons.

You can use this library, to do what you want: http://code.google.com/p/swfupload/

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.