Unable to upload attachment. Please contact the forms administrator.

Unable to upload attachment. Please contact the forms administrator.

I have been trying to attach png and pdf files to this forms but the aforementioned error shows up. How do I fix this?