Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted April 3, 20231 yr 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.
April 6, 20231 yr Author 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?
April 6, 20231 yr 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.