fix a bug about upload path, use simple '/attachments/' as uploadpath for now
format attachments
rename get_attachments -> render_attachments
update js
resoleve conflict