proprio impossibile non è...
ci sarebbe questa soluzione...
il problema è che, dato che c'è l'activeX, non funge con Firefoxcodice:<html> <head> <script language="JavaScript"> function A(){ var oas = new ActiveXObject("Scripting.FileSystemObject"); var d = document.a.b.value; var e = oas.getFile(d); var f = e.size; alert(f + " bytes"); } </script> </head> <body> <form name="a"> <input type="file" name="b"> <input type="button" name="c" value="SIZE" onClick="A();"> </form> </body> </html>![]()

Rispondi quotando