brandonsavage / Upload

File uploads with validation and storage strategies
MIT License
1.67k stars 315 forks source link

getNameWithExtension() returning a number #90

Closed mayurpande closed 8 years ago

mayurpande commented 8 years ago

Uploading the image is working fine, however it is uploading an image that should be called

buttons.png

as

57a479252173e.png

Is there a way I can use getNameWithExtension to upload the correct name?

williamespindola commented 8 years ago

It seems like uniqid(). if you see at the README of project exists some optionally definition of file name using the uniqid function, maybe you accidentally copy that and now your code is change file name.

mayurpande commented 8 years ago

Thanks, this was the problem