Why are files sent through Gmail renamed? Why is it if I download an image sent to me through Gmail the filename of the image was changed into downloadfile? Is there a way that the filename won't be changed after downloading it from Gmail?

Samsung Galaxy 5, if it matters.
The newest version of the Gmail app supports file downloads, rather than previews.  If you're using the website I would think that Foley is correct.