phantommagick icon indicating copy to clipboard operation
phantommagick copied to clipboard

$conv->download() works on homestead but not on AWS

Open cdentesting opened this issue 6 years ago • 2 comments

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!

cdentesting avatar May 03 '18 00:05 cdentesting

I have the same problem with Laravel 5.7 on AWS, local works fine!

disantidev avatar Feb 07 '19 17:02 disantidev

$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

wonbin2011 avatar May 04 '19 13:05 wonbin2011