Colombia Humana Posted April 3 Share Posted April 3 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. Link to comment Share on other sites More sharing options...
Martin A. Posted April 4 Share Posted April 4 No, not base64. Plain file content as value. Link to comment Share on other sites More sharing options...
Colombia Humana Posted April 6 Author Share Posted April 6 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? Link to comment Share on other sites More sharing options...
Ryan Ashbrook Posted April 6 Share Posted April 6 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 Link to comment Share on other sites More sharing options...
Recommended Posts