The response keeps returning me to the src folder but i have my files saved to the webroot folder. I have seen the question Change withFile path . But it doesn’t give a answer,
I have given the complete file path still not working. Keeps adding ‘www/app/src’
Graziel
February 25, 2020, 1:55pm
2
it means it cant find file in given path and trying to look in alternatives
*
* If `$_SERVER['HTTP_RANGE']` is set, a slice of the file will be
* returned instead of the entire file.
*
* ### Options keys
*
* - name: Alternate download name
* - download: If `true` sets download header and forces file to
* be downloaded rather than displayed inline.
*
* @param string $path Path to file. If the path is not an absolute path that resolves
* to a file, `APP` will be prepended to the path (this behavior is deprecated).
* @param array $options Options See above.
* @return static
* @throws \Cake\Http\Exception\NotFoundException
*/
public function withFile($path, array $options = [])
{
$file = $this->validateFile($path);
$options += [
'name' => null,