richardgirges / express-fileupload

Simple express file upload middleware that wraps around busboy
MIT License
1.52k stars 261 forks source link

Adding an additional property to files! #34

Closed jashanbhullar closed 5 years ago

jashanbhullar commented 7 years ago

Working on uploading a a complete folder to the server. Need webkitRelativePath property of the file to preserver directory structure. Please add this functionality or point me in the right direction, i will do it myself.

richardgirges commented 7 years ago

Hey @jashanbhullar I'm not quite sure I understand the request. Can you elaborate?

All of the source code is in the lib/index.js file: https://github.com/richardgirges/express-fileupload/blob/master/lib/index.js

Feel free to send a PR!

jashanbhullar commented 7 years ago

Let's say i upload a complete directory from a client's system using a simple HTML form, then i want to replicate the directory structure under that directory on the server. There's no option for me to do that in this module. See multer 's preservepath and originalname

RomanBurunkov commented 5 years ago

Closing that since no updates here for a while.