Colombia Humana Posted April 3, 2023 Posted April 3, 2023 Hi there, According to the documentation https://invisioncommunity.com/developers/rest-api?endpoint=downloads/files/POSTindex I have to send the files as key being the name and value being the file contents... Does it mean base64? Kind regards.
Colombia Humana Posted April 6, 2023 Author Posted April 6, 2023 On 4/4/2023 at 12:57 PM, Martin A. said: No, not base64. Plain file content as value. Sorry @Martin A. I don't think I got it... What is "plain file content"? If it's a PDF, what should I do?
Ryan Ashbrook Posted April 6, 2023 Posted April 6, 2023 In PHP it would look something like this: array( 'file1.pdf' => file_get_contents( '/path/to/file1.pdf' ), 'file2.pdf' => file_get_contents( '/path/to/file2.pdf' ), 'file3.txt' => 'This is the plaintext contents of file3.txt' ) So basically the raw file contents as a string. Martin A. and Matt 2
Recommended Posts