Saturday 17 May 2008 8:34:34 am
Hi ! I'm writing a custom module who permit to upload a file. Here is the basic form I'm using :
<form enctype="multipart/form-data" method="post" action={"mymodule/send"|ezurl}>
<input name="file1" type="file" size="20" />
<input name="text1" type="text" value="lorem"/>
<input type="submit" name="SendButton" value="send" />
</form>
Here is the executed code behind the send view of my module :
echo "<pre>";print_r($_POST);echo "</pre>";
and the output after submitting the form is :
Array
(
[text1] => lorem
[SendButton] => send
)
I don't understand why the file1 attribute is not present in $_POST ! I precise that files uploads into the administration interface are OK, so I don't think that the problem is global to my server. Please help me before I become crazy, I spent one hour to find a solution =( Thanks in advance for your help !
eZ Publish Freelance
web : http://www.webaxis.fr
|