Hi guys,
I'm using the media_handle_sideload example code from the codex
http://codex.wordpress.org/Function_Reference/media_handle_sideload
It all works fine except for the fact that the image added to the media library has no file extension (.jpg), so it doesn't display.
If I visit the extensionless file by the URL I can download it to my desktop and rename it with .jpg and open it, so I know the file itself is fine. It just has no extension.
Any suggestions?