I use Plupload to control file uploads for my site. When I configure Plupload to publish to the next test file, the entries are displayed correctly, however when sending to the CI controller the values $ _POST and $ _FILES are empty.
test.php
<?php print_r($_FILES); print_r($_POST); ?>
CI correctly displays $ _FILES and $ _POST arrays when using a standard HTML form, so any ideas that cause this?
EDIT here is the plupload configuration
var uploader = new plupload.Uploader({ runtimes : 'html5,html4,flash,silverlight,browserplus', browse_button : 'pickfiles', container : 'container', max_file_size : '15mb', url : '/test.php', //url : '/upload/do_upload/', flash_swf_url : '/js/plupload/plupload.flash.swf', silverlight_xap_url : '/js/plupload/plupload.silverlight.xap', filters : [ {title : "Documents", extensions : "pdf,doc,docx,rtf,txt"} ], multipart_params : { job : -2 } });
and here is the controller
class Upload extends CI_Controller { function __construct() { parent::__construct(); } function index() { $this->load->view('upload_form', array('error' => ' ' )); } function do_upload() { print_r($_POST); print_r($_FILES); $config['upload_path'] = 'incoming/'; $config['allowed_types'] = 'pdf|doc|docx|rtf|txt'; $config['max_size'] = '900'; $this->load->library('upload'); $this->upload->initialize($config);