Topic: Download image not working [SOLVED]
Hello,
I've just noticed that the download functionality is not working in my galleries. I know that it used to work, but this may have been before I changed server setup - I'm not certain when it last worked.
In any case, what happens is I get a 0-length image file when I use the download icon. Looking in the error_log for apache httpd, I see this:
PHP Warning: readfile(/var/www/html/photos/funshoots/2016-09-15%20Melissa+Hank/images/DSCF5033.jpg): failed to open stream: No such file or directory in /var/www/html/photos/funshoots/2016-09-15 Melissa+Hank/jbcore/juicebox.php on line 21
The file we want to download is in fact there, and permissions are fine. I think the issue is the %20 in the filename. (I added a debug line to juicebox.php just before readfile() to print the name of the file we're readquesting, and it does show the %20 there as well).
I'm sure it must be some configuration option - perhaps a PHP config on my server? I used to host the galleries on a Bluehost virtual server. I am now hosting it on an AWS ec2 instance running Amazon Linux (essentially centos).
Any help appreciated. The image I'm referring to above can be seen here: http://thomasblom.com/photos/funshoots/ … issa+Hank/