Using dropzone.js with meteor.js

前端 未结 3 754
旧巷少年郎
旧巷少年郎 2021-02-09 18:53

I am confused about something. I am trying to use the dropzone.js meteor package (http://atmospherejs.com/dbarrett/dropzonejs) with my meteor application but I could not find a

3条回答
  •  滥情空心
    2021-02-09 19:09

    Please find below link(example of dropzonejs):
    

    https://github.com/devonbarrett/meteor-dropzone/tree/master/example-app

    Put  {{>dropzone url="/upload" id="template-helper"}} In your template
    
    
    
    Then at server side:
    if (Meteor.isServer) {
      Meteor.startup(function () {
        UploadServer.init({
          tmpDir: process.env.PWD + '/public/uploads',
          uploadDir: process.env.PWD + '/public/uploads',
          checkCreateDirectories: true,
          uploadUrl: '/upload'
        });
      });
    }
    

提交回复
热议问题