Re: Problem when trying to upload zip/rar files with the milesjohnson's upload plugin

2011-06-08 Thread axell9641

Miles J wrote:
> 
> Does it work with regular files?
> 
Yes, it certainly does. It works wonders with regular files


Miles J wrote:
> 
> Also, can you paste the whole error, the image is cutting it off.
> 

Ok, there you go:
-Notice (8): Array to string conversion
[CORE\cake\libs\model\datasources\dbo_source.php, line 749]

-Warning (512): SQL Error: 1054: Unknown column 'Array' in 'field list'
[CORE\cake\libs\model\datasources\dbo_source.php, line 684]

-Query: INSERT INTO `publicaciones` (`vigencia`, `tipo`, `titulo`,
`descripcion`, `fecha_publicacion`, `fecha_caducidad`, `link_referencia`,
`modified`, `created`) VALUES (1, 'c', 'If you ,if you could return', '
Cause she's so high...high above me, she's so lovely', '2011-06-01',
'2011-06-10', Array, '2011-06-08 15:42:22', '2011-06-08 15:42:22') 




Miles J wrote:
> 
> And lastly, make sure you are using the latest version.
> https://github.com/milesj/cake-uploader/downloads
> 
Yes, I did that too, but I keep getting the same error



--
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-tp4458874p4470991.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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Problem when trying to upload zip/rar files with the milesjohnson's upload plugin

2011-06-08 Thread axell9641
any ideas??? 

--
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-tp4458874p4470353.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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Problem when trying to upload zip/rar files with the milesjohnson's upload plugin

2011-06-07 Thread axell9641
any ideas??? 

--
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-tp4458874p4462333.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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Problem when trying to upload zip/rar files with the milesjohnson's upload plugin

2011-06-06 Thread axell9641
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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php