Connected uploadmodal to backend.
Added file attachment upload.