question

WebDAV-4685 avatar image
4 Votes"
WebDAV-4685 asked XiaopoYang-MSFT answered

Where do I store custom data associated with a placeholder (CF API)?

I am creating a virtual drive using a Cloud Filter API. I need to store a file eTag and other custom data as part of my file/folder. The file/folder may be moved or renamed within my drive and the data should move with a file/folder.

As far as I see, Cloud Files API provides a place for storing such information inside the FileIdentity property. For example CfConvertToPlaceholder() function provides FileIdentity parameter.

However, Microsoft Office documents are being renamed and replaced with a new file when a document is being saved. So all data inside FileIdentity is being lost:

143798-mydrivemsword.png

Where do I store my custom data associated with a file/folder placeholder? Is there any dedicated place for the data associated with a placeholder? Or is there any technique to prevent the FileIdentity from being deleted during MS Office save operation?

@XiaopoYang-MSFT @RitaHan-MSFT @FeiXue-MSFT


windows-api
mydrivemsword.png (6.7 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

It seems Placeholders have buffers to contain file information supplied by the sync provider. And as Microsoft Office documents as concerned, How do you know all data inside FileIdentity is being lost?
Or as the question implied, Another possible solution is using metadata.

0 Votes 0 ·

Please look at the screenshot. When MS Office doc is being saved the MS Office document 1.docx is renamed to ~WRL0001.tmp and then deleted. And after that, a new file is created.

So all data is lost, regardless you store it inside FileIdentity or inside metadata.

0 Votes 0 ·

1 Answer

XiaopoYang-MSFT avatar image
0 Votes"
XiaopoYang-MSFT answered

I have reproduced the problem. It should be a Microsoft Office defined behavior and You‘d better send Microsoft Office Feedback to Microsoft with the Feedback Hub app.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.