phantommagick
phantommagick copied to clipboard
$conv->download() works on homestead but not on AWS
I'm able to set up my content, convert it to a Pdf and download it perfectly on my local machine (running homestead), but when I deploy the code to my ec2 instance I don't get a pdf download at all. I used a var_dump to verify that my local html is being converted into a string just like it is on homestead, but when I checked the Network I found that instead of being sent as type/pdf it is being sent as html. My controller runs the converter, then redirects to the form used to create the document (and the type/html is just getting sheared off in that process I'm sure).
I'm sure I just missed something, but do you have an idea of what is causing this to happen? I'm using laravel 5.4 on Amazon Linux. (no die or dump in my code, I have another controller using eliby/tcpdf that works fine so I don't think it's a server issue). Thanks!
I have the same problem with Laravel 5.7 on AWS, local works fine!
$conv->toPng()->save dosen't work on cloud service.
-rw-r--r-- 1 www www 0 May 4 21:45 bdd37d4c3ed274f5959e27b0137d0d5a.png
and i am sure that the file permission is all right