Paul Sturrock wrote:Why do you need JavaScript to upload a file?
Hi Paul, you, misunderstood me. Actually the aim was to find the file size at the client side instead on finding the size at server and dropping the request if the size exceeds.
So somehow I should be able to enter the local drive and find the file size. Where javascript does not have such kind of abilities. So I supposed to choose action script. Action script can enter the local disk and find the file size. I have done this successfully from the browser.
Now what I have did his, read the html file input value from javascript and then call an appropriate actionscript's method to find the file size.
It went right on IE and mozilla, but didnt work properly in chrome, because the browser's sand box in not allowing javascript to read the html file's input value, its only giving the file name, where the entire path is required.
So I dropped the idea. Hope now you understand what I was trying to do.