I want to store files on server with custom File properties. On client side im adding properties:
let file = new File([blob], 'flower.jpg')
file.custom = "another properties"
this gives me
custom:"another properties"
lastModified:1524742832101
lastModifiedDate:Thu Apr 26 2018 13:40:32 GMT+0200 (W. Europe Daylight Time {}
name:"flower.jpg"
size:845941
type:"image/jpeg"
webkitRelativePath:""
When i send this file to my node server the custom property is deleted. Im using formData and multer for file upload.
fieldname: 'images',
originalname: 'flower.jpg',
encoding: '7bit',
mimetype: 'image/jpeg',
destination: 'uploads/',
size: 845941
Is there a way to store the file including custom properties?