bug fix for attachments not processed in api mode.
bug fix for attachments not processed in api mode.

ainopara/Stage1st-Reader,ainopara/Stage1st-Reader,ainopara/Stage1st-Reader,ainopara/Stage1st-Reader