I am creating a plugin for Revit in C#. This plugin will allow user to upload the working file directly to the cloud. But the problem is file is not uploading to the cloud because it is opened in application. I tried pdf files also. if file is not opened by any application it will be successfully uploaded to the cloud.
So the bug is that if file is opened by any application it cannot be uploaded to cloud.
Following code is used to read the file
m_FileContent = new FileStream(m_strFilePath, FileMode.Open,FileAccess.Read,FileShare.ReadWrite);