Closed kena421 closed 4 years ago
document upload with max limit size 500KB
if document size > 500KB return error msgMsg : loo large file save document in uploads folder
Input : { type : document type eg. png document : document file, name : name of document, description : dummy text }
database schema Document : { name :"" type :"" size : "" description : "" _id : default generated by mongodb }
Note: do not pass document size in input just pass document but check size anyhow
assigment 5 done
some of the bugs FileFilter not applied no need to save image into database README.md not documentated well
document upload with max limit size 500KB
if document size > 500KB return error msgMsg : loo large file save document in uploads folder
Input : { type : document type eg. png document : document file, name : name of document, description : dummy text }
database schema Document : { name :"" type :"" size : "" description : "" _id : default generated by mongodb }
Note: do not pass document size in input just pass document but check size anyhow