Unable to use uploadFile method to attach a file

Do you have an error message?