Adding function for posting files with multipart/form-data