anacronw / multer-s3

multer storage engine for amazon s3
MIT License
660 stars 191 forks source link

Added filename function #6

Closed jacobtomlinson closed 9 years ago

jacobtomlinson commented 9 years ago

This PR allows you to specify a custom function for setting the filename as part of the config options. This is in keeping with DiskStorage as requested by @LinusU.

I apologise that this kind of takes over #4 but I needed to get this working for myself now.

jacobtomlinson commented 9 years ago

Removed semicolon and squashed

anacronw commented 9 years ago

This looks good to me

I also didn't realize the distinction b/w the randomBytes vs pseudoRandomBytes in crypto. It makes sense to use the pseudoRandom one.

LinusU commented 9 years ago

Looks good :+1: