'My uploaded files are stored on the server without format How to add a format to a file and submit that file to a web service in php?
Solution 1:[1]
'file'=> new CURLFile('e9c55359-96ae-3b42-2605-6288ae4f4342', 'image/jpeg', '1.jpg'
Solution 2:[2]
What is CURLFILE ? Is it a typo of CURLFile or is it a custom made class ?
You may try something like this:
'image' => new CURLFile('Your_File', 'image/jpeg', 'image').
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Saltern |
| Solution 2 |

