Online forms often reject files for one of two reasons: the format is not accepted, or the file is too large. The right fix depends on the file.
For email attachments, JPG is often the easiest choice because it stays widely supported and usually keeps file size lower than PNG.