I'm tired and probably a bit thick - but I do not see how I should go about to simply add a file that the server have picked up somewhere. Process is that I have a PDF-form-fill server on one machine and my Meteor access that with form data and get a link to PDF file in return.
If link, I do a GET and can save it on my local file system. All is well, apart from that I want it into my filesCollection with the other files.
Can that be done? Is a few hours of sleep all I need?
Hello @stefanve ,
Take a look on:
.addFile() - Add local file to FilesCollection from FS.write() - Write a Buffer to FS and add record to Files collectionPerfect, thanks!
Feel free to reopen it in case if the issue still persists on your end.
Please, support this project by:
I couldn't use write function.
I am getting this error: Error during upload: TypeError: Images.write is not a function.
https://github.com/VeliovGroup/Meteor-Files/issues/520