[TASK] add function to submit form with attachment via ajax