Tuesday, April 9, 2013

Re: Download file

hi, another update from my problem:

$this->set(array(
'id' => $upload['Upload']['id'],
'name' => substr($filename, 0, strrpos($filename, '.') +10),
'path' => APP.'uploads'.DS,
'download' => true,
));

After i modified the array for name, it seems that in latest IE and Firefox are working perfectly but in Google Chrome still have problem. For example, i download file name as picture.jpg, in IE and Firefox, it perfectly download the file but in Chrome, it will download file picture.jpg- (with dash after file extension). It caused the file unable to open since the extension is not valid. 

Any comment?

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments: