php - file input not work in joomla 2.5 component -
i have simple component must upload file server, when submit form see error:
notice: undefined index: uploaded_file in d:\wamp\www\joomla2.5\components\com_print\print.php on line 13
component in frontend , code is:
<?php // no direct access defined('_jexec') or die; jimport('joomla.application.component.controller'); ?> <form enctype="multipart/form-data" action="<?php $_server['php_self']; ?>" method="post"> <input type="hidden" name="max_file_size" value="1000000" /> choose file upload: <input name="uploaded_file" type="file" /> <input type="submit" value="upload" /> </form> <?php echo $_post['uploaded_file']; echo $_post['max_file_size']; ?>
please help.
the datas input of type "file" in $_files not $_post
var_dump($_files['uploaded_file']);
Comments
Post a Comment