Rename attachment_id to attachmentId.
Delete file remotely when removing an uploaded attachment.
Use a JS request instead of JSON to upload files.
Show description field and delete link after upload is complete.
Use a valid id.
Code cleanup.
Extract delete link style to css.
Use data attributes on input instead of global variable.