We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Here I'm not able to get the file in server side. Please help
Server side:
const testImages = new FilesCollection({ storagePath: process.env.PWD + "/uploads/testImages", collectionName: "testImages" }); Api.addRoute('testImages', {authRequired: false}, { post: function () { var uploadedFile = new fs.File(this.request.files.file.path); var insertedFile = testImages.insert(uploadedFile, function (err, fileObj) { if (err) { console.log(err); } else { console.log(fileObj.size()+" "+fileObj.name()+" "+fileObj.extension()); } }); return { status: "success", data: insertedFile._id } } } );
Client Side (Postman plugin)
Thank you :)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Here I'm not able to get the file in server side.
Please help
Server side:
Client Side (Postman plugin)
Thank you :)
The text was updated successfully, but these errors were encountered: