Re: Problem in simple file upload

2011-02-02 Thread Miles J
View the source of your HTML and make sure the form action is pointing to the right URL. Also what version of the Uploader are you using? You should download the latest version off of Github. Furthermore, your file type must be supported, if it is not, you have to add it to the mime types array.

Re: Problem in simple file upload

2011-02-01 Thread newguy
I checked the _mime types but couldnt find a error in there, am stuck guys please suggest something. On Feb 1, 2:50 pm, Stephen wrote: > Nope, you called the field "aiman". So when checking for the file, check the > field named "aiman" for example $this->data['Model']['aiman']['tmp_name'] > > On

Re: Problem in simple file upload

2011-02-01 Thread Stephen
Nope, you called the field "aiman". So when checking for the file, check the field named "aiman" for example $this->data['Model']['aiman']['tmp_name'] On 1 February 2011 22:43, newguy wrote: > Stephen one simple question, this line in upload.cpt > echo $form->input('aiman', array('type' => '

Re: Problem in simple file upload

2011-02-01 Thread newguy
Stephen one simple question, this line in upload.cpt echo $form->input('aiman', array('type' => 'file')); means that I can upload only file named aiman?? On Feb 1, 2:17 pm, Stephen wrote: > This error tells me that your form is successfully reaching the correct > action "upload". > > Che

Re: Problem in simple file upload

2011-02-01 Thread Stephen
This error tells me that your form is successfully reaching the correct action "upload". Check that $this->__mimeTypes is valid, it sounds like it isn't. The syntax is correct enough. On 1 February 2011 21:55, newguy wrote: > I tried that, this time no call was made to add action but I got this

Re: Problem in simple file upload

2011-02-01 Thread newguy
I tried that, this time no call was made to add action but I got this warning: Invalid argument supplied for foreach() [APP/plugins/uploader/ controllers/components/uploader.php, line 1084] This is the foreach in which warning is coming: foreach ($this->__mimeTypes as $grouping => $mimes) {

Re: Problem in simple file upload

2011-02-01 Thread Stephen
Try create('User',array('action' => 'upload', 'type'=>'file')); ?> ? On 1 February 2011 21:41, newguy wrote: > Hi I am following this uploader plugin to implement simple file upload > on my site: > > http://www.milesj.me/resources/script/uploader-plugin > > but the problem is that when I press

Problem in simple file upload

2011-02-01 Thread newguy
Hi I am following this uploader plugin to implement simple file upload on my site: http://www.milesj.me/resources/script/uploader-plugin but the problem is that when I press the upload button call to a unknown action add is made, I dont have any action by the name of add, here is my code: After