Had anyone else same problem?
I'm using ver 2.4.4 and I have problems with forced downloading files.
When I click a "download" link, which in generalization does this:
I get error like:
"File XXX cannot be written, because source file could not be read.
Try again later or contact your server administrator."
The download window with option to write file appears, but clicking on "OK" button does nothing (there is no file being saved).
The $f variable contains all the needed data ('file_name' and 'file_ext').
This problem occurs only on the production server. On the localhost everything works fine.
Files definately exist in the "app/webroot/files" folder.
The "app/tmp" folder has 0777 permissions.
What could it be?
-- I'm using ver 2.4.4 and I have problems with forced downloading files.
When I click a "download" link, which in generalization does this:
$this->response->file('files'.DS.$f['file']['file_name'].'.'.$f['File']['file_ext'],array('download'=>true,'name'=>$f['File']['file_name'].'.'.$f['File']['file_ext']));
I get error like:
"File XXX cannot be written, because source file could not be read.
Try again later or contact your server administrator."
The download window with option to write file appears, but clicking on "OK" button does nothing (there is no file being saved).
The $f variable contains all the needed data ('file_name' and 'file_ext').
This problem occurs only on the production server. On the localhost everything works fine.
Files definately exist in the "app/webroot/files" folder.
The "app/tmp" folder has 0777 permissions.
What could it be?
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.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment