You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed the rename function uses a return value. Can this be done inside a callback? or would it simply return undefined? I need to fetch an ID for the image which would be a database call like so:
rename: function (fieldname, filename) {
getNextPhotoId(function(id){
return id + ".jpg";
}
}
is this possible with multer?
The text was updated successfully, but these errors were encountered:
Hello,
I noticed the rename function uses a return value. Can this be done inside a callback? or would it simply return undefined? I need to fetch an ID for the image which would be a database call like so:
is this possible with multer?
The text was updated successfully, but these errors were encountered: