W3C home > Mailing lists > Public > www-html@w3.org > March 2003

Re: input type= file problems

From: Larry Hawkins <larryh@lslg.net>
Date: Tue, 11 Mar 2003 17:01:31 -0600
Message-ID: <000f01c2e822$27c68950$5cbaae3f@kosh>
To: <www-html@w3.org>
from what I can see it is because you have not set the "MIME TYPE" of file....like this

<SCRIPT LANGUAGE="JavaScript">
<!--
	function validar() {
		document.formulario.texto.value = "mi texto";
		document.formulario.FILE1.value = "c:\rascacielos.jpg";
	}


//-->
</SCRIPT>

     inside a web page like this:

<form action="http://www.pppp.es/cgi_upload/upload.cgi" method="post"
name="formulario" enctype="multipart/form-data" >

<input type="File" name="FILE1" accept="(types of files to accept)">
<p>
<input type="Submit" value="submit">
<p>
<input type="button" value="cargar" onClick="validar()">
Received on Tuesday, 11 March 2003 18:09:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:54 GMT