在Meteor上应该上传哪个目录的图片或文件? [英] To which directory images or files should be uploaded in Meteor?
本文介绍了在Meteor上应该上传哪个目录的图片或文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
目前这是我上传所有图片的目录:
meteorApp / public / uploads / images /
$ p $但是每当我上传图片,它刷新我的客户端。因为流星正在不断寻找其目录或文件的变化。那么我应该在哪里设置我的上传目录?
解决方案
解决方案是把文件放在一个地方流星不关心:隐藏文件夹(.name),忽略文件夹(名称〜)或Meteor目录外的文件夹。
$ b 请参阅 answer 。
In Meteor, what should be the directory for uploading images or files?
Currently this is my directory where I am uploading all the Images:
meteorApp/public/uploads/images/
But whenever I upload images, it refreshes my client. Its because Meteor is continuously looking for a change in its directory or files. So where should I set my uploads directory to?
解决方案
The solution is to put files in a place Meteor does not care about: hidden folder (.name), ignored folder (name~), or folder outside of Meteor directory.
Refer this answer.
这篇关于在Meteor上应该上传哪个目录的图片或文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文