Windows 8 WinJS共享具有文件写入权限的目标
我的应用程序充当任何文件的共享目标。 我已通过以下方式读取了对Windows 8 WinJS共享具有文件写入权限的目标,windows-8,windows-runtime,winjs,Windows 8,Windows Runtime,Winjs,我的应用程序充当任何文件的共享目标。 我已通过以下方式读取了对Windows.Storage.StorageFile对象实例的访问权限: if (shareOperation.data.contains(Windows.ApplicationModel.DataTransfer.StandardDataFormats.storageItems)) { shareOperation.data.getStorageItemsAsync().then(function (sto
Windows.Storage.StorageFile
对象实例的访问权限:
if (shareOperation.data.contains(Windows.ApplicationModel.DataTransfer.StandardDataFormats.storageItems)) {
shareOperation.data.getStorageItemsAsync().then(function (storageItems) {
for (var i = 0; i < storageItems.size; i++) {
var storageFile = storageItems.getAt(i);
// storageFile is of type Windows.Storage.StorageFile
}
});
}
if(shareOperation.data.contains(Windows.ApplicationModel.DataTransfer.StandardDataFormats.storageItems)){
shareOperation.data.getStorageItemsAsync().then(函数(storageItems){
对于(var i=0;i
但是当我想写文件时,我得到一个异常(0x80071779),该文件是只读的
有没有办法获得通过共享合同接收的文件的写入权限(包括删除权限)
我在网上搜索,但找不到任何答案,甚至找不到包括write在内的示例。你的应用程序会成为文件选择器的目标吗?谢谢,我会看看这是否是一个替代方案。这对你来说是如何结束的?抱歉,没有遵循这条路径,但目前我正在完全重写我的应用程序,也许我会再次尝试添加这样的功能。