resolved attachment upload issue