Hi 
I'm new to cakephp and I have found this milesjohnson's upload plugin ( 
http://milesj.me/code/cakephp/uploader#script  ) and I kind of like it,
mostly because it gives me the chance of renaming the file once
uploaded.Unfortunately, I can't get it to upload any zip/rar files.

This is the action where I upload the file:

    function add() {
                if (!empty($this->data)) {
                
                if ($data = $this->Uploader->upload('link_referencia',
array('name' => date("dmYhis")))) {
                     debug($data);
                    
$this->data['Publicacione']['link_referencia']=$data['name'];
                }
                        $this->Publicacione->create();
    
                        if ($this->Publicacione->save($this->data)) {
                                $this->Session->setFlash(__('The publicacione 
has been saved',
true));
                                //$this->redirect(array('action' => 'index'));
                        } else {
                                $this->Session->setFlash(__('The publicacione 
could not be saved.
Please, try again.', true));
                        }
                }
                $users = $this->Publicacione->User->find('list');
                $this->set(compact('users'));
        }

And this is the error I get everytime I attempt to upload any zip/rar file :
http://imageshack.us/photo/my-images/542/errorn.jpg/

Does anyone have any ideas on what the problem might be?
Thanks in advance.


--
View this message in context: 
http://cakephp.1045679.n5.nabble.com/Problem-when-trying-to-upload-zip-rar-files-with-the-milesjohnson-s-upload-plugin-tp4458874p4458874.html
Sent from the CakePHP mailing list archive at Nabble.com.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to