upload by url without extname

I have image url without extention, and it isn't saved.
My fast hook for this bug.
Works only for images files.