You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@bartoss77 Unfortunately the generated APi does not allow file uploads yet. It treats the file fields as simple text fields.
I will try to make the upload possible in the near future.
Hi,
are upload file type field by API working??
$fileb64 = base64_encode(file_get_contents('test.pdf'));
$result = $client->call($sessionId, 'document.add', array(
'document' => array(
'document_name' => 'test api document file',
'name_doc' => 'title of doc',
'file' => array(
'name' => 'testpdf.pdf',
'content' => $fileb64,
'mime' => 'application/pdf'
)
)
));
The text was updated successfully, but these errors were encountered: