Welcome Guest, Not a member yet? Register   Sign In
problem accessing $_FILES['userfile'] in controller after uploadify creates a queue
#1

[eluser]zrowcrypt[/eluser]
I am using uploadify to just create the filearray queue. I want to control the processing of the files and how they are uploaded using my logic in the model so i am not using uploadify.php

VIEW snippet:
=============
<?php echo form_upload('userfile', '', 'id="fileInput"'); ?>
[removed]// <![CDATA[
$(document).ready(function()
{

$('#fileInput').uploadify(
{
'uploader' : '<?php echo base_url();?>uploadifyplug/uploadify.swf',
'script' : '<?php echo base_url();?>uploadifyplug/uploadify.php',
'cancelImg' : '<?php echo base_url();?>uploadifyplug/cancel.png',
'auto' : true,
'multi' :true,
'folder' : '<?php echo base_url();?>uploadifyplug/pics' //Is not being used.

});
});
// ]]>[removed]


<div class="submit_div">&lt;?php echo form_submit('submit', 'Submit'); ?&gt;</div>

CONTROLLER:
============
if($this->input->post('submit'))
{
print_r($_FILES['userfile']);
}

RESULT
=========
Empty array

I am new to both CI and uploadify so I could have misunderstood something very basic. Please help me understand. Thanks.


Messages In This Thread
problem accessing $_FILES['userfile'] in controller after uploadify creates a queue - by El Forum - 10-24-2010, 04:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB