I'm trying out a Laravel wrapper for CloudConvert, so I'm using one of the examples from GitHub to check the basic file conversion. My code is the following:
$path = storage_path('app');
CloudConvert::file($path.'/test.jpg')->to($path.'/test.pdf');
so basically I want to convert test.jpg file to test.pdf. Both source and output files should be taken from/saved under storage/app
.
Thing is, the conversion takes place but the output file is not being saved under the specified path (nor anywhere in the project). I know the conversion is successful, because I can see it in my CloudConvert account, and I can download the PDF after conversion from CloudConvert directly.
What am I doing wrong? Why isn't the output file stored?
I also tried to change the destination path to use public
directory - no luck.