Forums / Developer / Where to create generated files
Jorge estévez
Thursday 11 March 2010 3:15:14 am
Hello,
I have seveal cronjobs that generate excelfiles xxx.csv
I have no clues where to create those files (somewhere at the site with read access for customers) so that customers can donwload them.
I have tryed at "var" (with 755 permissions) but when trying to "get" the file from the site it gives me an error "you have not enough permissions to access bla bla bla"
Any ideas?
thanks
Diseño Web Cuba Web Design Cuba www.elfosdesign.com
Christian Rößler
Thursday 11 March 2010 4:11:24 am
Hy,
i think the var-directory is a good place for those 'temporary' files. The errormessage probably comes from your .htaccess file which restricts the access to files in the var-folder except for pdfs and images.Perhaps you should post the complete errormessage, try copy'n'paste :-)
If the error is invoked by .htaccess restrictions, edit that file. You can find it in the Exponential main directory.Find the following lines and add your csv-files to it:
from: <FilesMatch "(^index\.php|favicon\.ico|index_treemenu\.php|\.(gif|jpe?g?|png|css|js|swf|html?)|var(.+)storage.pdf(.+)\.pdf)$"> to:<FilesMatch "(^index\.php|favicon\.ico|index_treemenu\.php|\.(gif|jpe?g?|png|css|js|swf|html?)|var(.+)storage.pdf(.+)\.pdf|var(.+)\.csv)$">
from: RewriteRule !(\.(gif|jpe?g?|png|css|js|swf|html?)|var(.+)storage.pdf(.+)\.pdf)$ index.php to:RewriteRule !(\.(gif|jpe?g?|png|css|js|swf|html?)|var(.+)storage.pdf(.+)\.pdf|var(.+)\.csv)$ index.php
That should do the trick. But it is untested, please verify...Chris
Hannover, Germany eZ-Certified http://auth.ez.no/certification/verify/395613