Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/shell/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Image Meteor Ostrio:文件服务器端图像插入_Image_File_Meteor_Server - Fatal编程技术网

Image Meteor Ostrio:文件服务器端图像插入

Image Meteor Ostrio:文件服务器端图像插入,image,file,meteor,server,Image,File,Meteor,Server,大家好,我正在使用ostrio:files包,我想在服务器端插入一个映像,并获取映像ID以输入其他数据。但是我在服务器端找不到任何关于将图像插入到集合的文档用于从服务器上载文件的Meteor文件文档-- 还值得查看jalik:ufs以获得另一个软件包——RocketChat正在积极维护和使用。谢谢,我在meteor中看到了该函数,但路径错误。我想下次我会选择jalik:ufs包,因为它看起来更简单 Images.write(binaryData, { fileName: 'somethi

大家好,我正在使用ostrio:files包,我想在服务器端插入一个映像,并获取映像ID以输入其他数据。但是我在服务器端找不到任何关于将图像插入到集合的文档

用于从服务器上载文件的Meteor文件文档--


还值得查看
jalik:ufs
以获得另一个软件包——RocketChat正在积极维护和使用。

谢谢,我在meteor中看到了该函数,但路径错误。我想下次我会选择jalik:ufs包,因为它看起来更简单
 Images.write(binaryData, {
   fileName: 'something.png',
   type: 'image/png',
   meta: {owner: this.userId}, // or whatever you want to add
 }, (error, fileRef)=> {
    // do stuff with fileRef
 });