And I get this error : {"status":"error","message":"no file found, please set name to 'files' or 'files[]'","correlationId":"d6ae2bcc-c26d-48db-91a9-d601cea56e7e","requestId":"5364051dc0127abf389ecf56f185f994"}
The pdf file is in the same folder as the php script.
What's wrong with this piece of code ?
Thanks.
UPDATE : I tried with different paths like :
$realpath = "D_201803_14122.pdf";
$realpath = '@'."D_201803_14122.pdf";
Still the same error
Hey @MathieuDuboy, can you upload a file that doesn't exist on your localhost? So just the file path from your computer instead of the path being on localhost? That's the only thing I can think of that would be causing the issue.