If I ever try to edit my signature on the forums it keeps giving me this error "Invalid file"

What do I need to do to prevent this?