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

post internal note attachment not working in osticket

Not uploading file when i submit post internal note in ticket edit area  
$attachments = $note_form->getField('attachments')->getClean();  
print_r($attachments);
            $vars['cannedattachments'] = array_merge(
                $vars['cannedattachments'] ?: array(), $attachments);

this section is not working i think 
it showing this outout

Array
(
[__CSRFToken__] => 07fcb9dfb70c4c198daf4815d86c005e478f09d7
[id] => 10225
[locktime] => 3
[a] => postnote
[title] => fasdf
[note] => asdfdsf
[state] =>
)
Array
(
[attachments] => FileUploadField Object
(
[attachments:protected] =>
[ht] => Array
(
[label] => Unlabeled
[required] =>
[default] =>
[configuration] => Array
(
[extensions] =>
)

[id] => attach
[name] => attach:note
)

[_form] => Form Object
(
[fields] => Array
*RECURSION*
[title] =>
[instructions] =>
[_errors] =>
[_source] => Array
(
[__CSRFToken__] => 07fcb9dfb70c4c198daf4815d86c005e478f09d7
[id] => 10225
[locktime] => 3
[a] => postnote
[title] => fasdf
[note] => asdfdsf
[state] =>
)

)

[_cform] =>
[_clean] =>
[_errors] => Array
(
)

[_widget] =>
[answer] =>
[parent] =>
[presentation_only] =>
)

)
please help me..
Tagged:

Comments

Sign In or Register to comment.