Meteor App中的文件上传 [英] File upload in Meteor App

查看:35
本文介绍了Meteor App中的文件上传的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现了很多不同的信息,但现在不推荐使用某些软件包.许多答案是两年前发布的

I have found lots of different information, but some packages are deprecated now. Many answers were posted more then 2 years ago

我想从后端面板上传照片(因此,没有用户上传),照片用于电子商务网站中的产品.计划部署到数字海洋(或类似的地方).

I want to upload photos from backend-panel (so, no user-uploads), photos are for products in e-commerse site. Planning to deploy to digital ocean (or something like that).

那么在我的情况下,在 Meteor 应用程序中处理照片上传的正确方法是什么?

So what is the correct way to handle photos upload in Meteor application in my situation?

感谢您的回答!

推荐答案

我强烈推荐 Slingshot.它没有折旧,而且真的很容易使用.

I highly recommend Slingshot. It's not depreciated, and it's really easy to use.

这也是一个好主意,因为它不会通过将照片直接上传到服务器来占用您的服务器资源.以及像 S3 这样的存储服务的简单使用,因此您不必担心备份或分区足够大的硬盘.

It's also a great idea because it doesn't take up your server's resources by uploading photos directly to it. As well as the easy use of a storage service like S3 so you don't have to worry about backups or partitioning big enough hard drives.

这篇关于Meteor App中的文件上传的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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