Monday 21 March 2016

using multer to grab the req.file to modify it before saving to the destination.

hello. I am using multer for my multipart/form-dataI want to read the file before its saved to the server. Any files that can be worked on locally before saved to the server is best. Multer has a memory option, but I dont know much about that yet. Still digging.I am using sox and according to the documentation this is the types of input it allowsFilenames can be simple file names, absolute or relative path names, or URLs (input files only). Note that URL support requires that wget(1) is available.so my question is, how can do this better than uploading the file and then just grabbing the file from the destination path and then doing the changes. that seems like a lot of unnecessary overhead than just using the original file from the form and then saving the modified copy to the destination.thanks for any feedback.

Submitted March 22, 2016 at 05:14AM by clandest

No comments:

Post a Comment