Trying get the rightname

Now with the extension because the user can upload jpg, png or gif