brandonsavage / Upload

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

getNameWithExtension() method returning a dot #71

Open mmatanzabcs opened 8 years ago

mmatanzabcs commented 8 years ago

echo $file->getNameWithExtension();

This returns a '.' ( a dot)

So when we are uploading an empty post, in which we validate for an empty array we get a non empty array:

Array ( [name] => . [extension] => [mime] => [size] => )
dstuecken commented 8 years ago

Are you using Version 2.0?