2015-10-05 147 views
1

你好,我想知道有沒有辦法使用afqucikfield上傳視頻。我已經做到了。它適用於圖像,但它並不適用於視頻使用afquickfield上傳視頻

{{#if afFieldValueIs name='articleType' value='video' }} 
         <!-- <p>hello</p> --> 
         <!-- <input type="button" value="videoId"> --> 
         {{> afQuickField name="videoId"}} 
        {{/if}} 

有人可以告訴我,我究竟做錯了,我應該如何上傳視頻。由於

更新

我存儲在S3

+0

這可能是有用的https://github.com/aldeed/meteor-cfs-autoform –

回答

1

我想通了,我在做什麼錯的所有文件。我正在使用FS集合,我只允許它用於圖像。我需要做的是讓它的影片喜歡這個

Videos = new FS.Collection("videos", { 
    stores: [imageStore], 
    filter: { 
    allow: { 
     contentTypes: ['video/*'] //allow only video in this FS.Collection 
    } 
    } 
});