Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

Cant do multiple attachment from API

Hi, may i know is it possible to upload multiple attachment, so far i
only able to upload one
(If i put 2 files like below it will only upload
the first one).
data['attachments'][] =
array('XXXX.png' =>
'data:image/png;base64,'
.base64_encode(file_get_contents('upload\2.png')),
'YYYY.png' =>
'data:image/png;base64,'
.base64_encode(file_get_contents('upload\4.png')));

Comments

Sign In or Register to comment.