added option to post single/multiple attachments