Open chattago2002 opened 8 months ago
Good question, you shouldn't return a string. Try this:
return ResponseFactory::from(200, "image/png", $decryptedFile);
You can see some response fiddling in the XmlMiddleware, see:
You can read more about PSR7 in de dependency:
Good question, you shouldn't return a string. Try this:
return ResponseFactory::from(200, "image/png", $decryptedFile);
You can see some response fiddling in the XmlMiddleware, see:
You can read more about PSR7 in de dependency:
Thanks for reply. I'll try in a few days and then let know.
Hi everybody.
I made a custom controller to handle file uploads and I'd like to add the capability to return the file via API made using this repository. In the function __construct function I added:
In
I need to get the file, decrypt (because in POST controller function the file is correctly uploaded as encrypted) but also if I add
I can't view the file and the error message is:
How can I do this?