在Meteor上应该上传哪个目录的图片或文件? [英] To which directory images or files should be uploaded in Meteor?

查看:120
本文介绍了在Meteor上应该上传哪个目录的图片或文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Meteor中,上传图片或文件的目录应该是什么?



目前这是我上传所有图片的目录:

  meteorApp / public / uploads / images / 

解决方案

解决方案是把文件放在一个地方流星不关心:隐藏文件夹(.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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆