How to respond server-side to routes using Meteor and Iron-Router?

后端 未结 4 1518
无人共我
无人共我 2021-01-27 04:34

I\'m sending a file from client-side to server side using XHR:

$(document).on(\'drop\', function(dropEvent) {
    dropEvent.preventDefault();
    _.each(dropEven         


        
4条回答
  •  孤独总比滥情好
    2021-01-27 05:00

    You can upload file with use of EJSON and normal meteor "methods" this way you will be able to get access to user data because it is visible only inside methods and publish functions on server side

    this video tutorial may be a good start

    also package CollectionFS provides some upload functionalities. It is now little outdated, but idea stays the same.

提交回复
热议问题