Log message #4098321

# At Username Text
# Nov 22nd 2017, 22:50 raul338 no, firt try with a real file
# Nov 22nd 2017, 22:37 joopp if i left empty the $path $file = $this->validateFile(); this still do something
# Nov 22nd 2017, 22:36 joopp from your link : $file = $this->validateFile($path);
# Nov 22nd 2017, 22:31 joopp okey and if the path is wrong the file will never exist
# Nov 22nd 2017, 22:31 raul338 https://api.cakephp.org/3.5/source-class-Cake.Http.Response.html#2544
# Nov 22nd 2017, 22:31 raul338 if the file does not exists, cake prepends APP directory
# Nov 22nd 2017, 22:31 raul338 and mypaths is a folder (trailing \)
# Nov 22nd 2017, 22:31 raul338 acording to the code, it checks that the file exists
# Nov 22nd 2017, 22:28 joopp the same as he has : https://stackoverflow.com/questions/45557691/file-path-setting-of-this-response-file-cakephp3
# Nov 22nd 2017, 22:27 joopp and now the $this->response->file('','') first parameter has already some values in mycase the APP_DIR
# Nov 22nd 2017, 22:26 joopp $mypath='C:\xampp\htdocs\cakeproject\webroot\uploads\rob\'
# Nov 22nd 2017, 22:25 raul338 value
# Nov 22nd 2017, 22:25 raul338 and what is mypath ?
# Nov 22nd 2017, 22:25 blackjccl File uploaded https://cakesf.slack.com/files/U5V7HDBHC/F83RTEYJC/-.php / https://slack-files.com/T053DPNCM-F83RTEYJC-c7d19cad0e - you can use the pagination helper with a stored procedure
# Nov 22nd 2017, 22:23 joopp $mypath will became APP_DIR.DS.$mypath
# Nov 22nd 2017, 22:23 joopp $this->response->file('$mypath', array('download' => true,'name' => $file->name,));
# Nov 22nd 2017, 22:22 joopp but no matter my path paraeter gets extra APP_DIR
# Nov 22nd 2017, 22:22 blackjccl Hi guys, I searched the entire network of how to use the pagination or the cakephp 3 helper when you work with a stored procedure with something like that
# Nov 22nd 2017, 22:22 joopp i have the two parameter
# Nov 22nd 2017, 22:22 raul338 https://book.cakephp.org/3.0/en/controllers/request-response.html#sending-files
# Nov 22nd 2017, 22:21 raul338 and i see you are passing 3
# Nov 22nd 2017, 22:21 raul338 sure but response->file has 2 params
# Nov 22nd 2017, 22:21 joopp in my case the APP_DIR
# Nov 22nd 2017, 22:21 joopp main problem is that : $this->response->file(' ** '// its seems ** have already some value
# Nov 22nd 2017, 22:20 joopp from my cake site
# Nov 22nd 2017, 22:20 joopp i am trying to download something
# Nov 22nd 2017, 22:19 raul338 what are you trying to do?
# Nov 22nd 2017, 22:19 joopp i know APP_DIR is the src
# Nov 22nd 2017, 22:16 joopp will also not work because it will give back C:\xampp\htdocs\cakeproject\src\'WWW_ROOT', ROOT . DS . 'webroot' . DS
# Nov 22nd 2017, 22:15 joopp tryying the following $this->response->file(''WWW_ROOT', ROOT . DS . 'webroot' . DS', array(
# Nov 22nd 2017, 22:12 joopp please help me
# Nov 22nd 2017, 22:11 joopp sorry
# Nov 22nd 2017, 22:11 joopp C:\xampp\htdocs\cakeproject\src\
# Nov 22nd 2017, 22:11 joopp thats why i see that no matter what try its allways begin from $this->response->file('', array(
# Nov 22nd 2017, 22:11 joopp $this->response->file('.......//i left empty// ......', array(
# Nov 22nd 2017, 22:10 joopp i dont know how to change this
# Nov 22nd 2017, 22:10 joopp The requested file C:\xampp\htdocs\cakeproject\src\ was not found or not readable
# Nov 22nd 2017, 22:09 raul338 I searched the whole cakephp src directory and getAssociation is not defined anywhere
# Nov 22nd 2017, 22:09 joopp i have the same problem as https://stackoverflow.com/questions/45557691/file-path-setting-of-this-response-file-cakephp3
# Nov 22nd 2017, 22:07 dereuromark they could still be in a trait. use a proper IDE that will tell you and find the location of it for you with a single click
# Nov 22nd 2017, 22:06 raul338 the function is not defined in the code