如何使用 Meteor 处理文件上传? [英] How would one handle a file upload with Meteor?

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

问题描述

使用 Meteor 处理文件上传的规范方法是什么?

What would be the canonical way to handle a file upload with Meteor?

推荐答案

目前似乎没有办法与 HTTP 服务器交互或执行与 HTTP 相关的任何事情.

There currently doesn't seem to be a way to interact with the HTTP server or do anything related to HTTP.

你唯一能做的就是通过 Meteor.methods 公开的 RPC 方法与服务器对话,或者直接通过公开的 mongoDB API 与 mongoDB 对话.

The only things you can do is talk to server over the RPC methods exposed by Meteor.methods or talk to mongoDB directly over the mongoDB API exposed.

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

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