2015-09-11 33 views

回答

1

iOS不通過其documentPicker UI提供內容類型。

但是,可以使用文件擴展名。

例如,山魈:如果用戶選擇一個稱爲 「爲例.pdf」

encodedFileContent = ... 

attachments: 
[{ 
    type: "application/pdf", 
    name: "example.pdf", 
    content: encodedFileContent 
}] 
文件