We are using the File Explorer with a CustomFileSystemProvider. When a user uploads a file, there is a method to check if the user has access to the share the file is being uploaded to. The method is called CheckWritePermissions:
public override bool CheckWritePermissions(string virtualTargetPath)
The method signature only provides access to the path of the folder. However, we need to also access the filename that is being uploaded as well, to do an additional check to see if the file already exists. At present, there doesn't seem to be any way to do this.
Does anyone know of a way to modify the CustomFileSystemProvider to access the filename when a user uploads documents to a share? Since users can upload multiple documents at a time, the method should show the current filename that is being processed as the files are uploaded.