Open a file from a storage provider in a new browser tab. Generates a pre-authenticated download URL and opens it.
The FileStorageAccount ID
The file path within the storage account
OptionalobjectId: stringOptional provider-specific object ID (e.g., Box file ID). When provided, uses this instead of path for faster resolution.
true if the file was opened successfully
Open a file from search result metadata. Extracts accountId and objectId/path from the RawMetadata JSON string.
JSON string from SearchResultItem.RawMetadata
true if the file was opened successfully, false if metadata was invalid or open failed
Open a file for preview in the provider's web viewer (if available). Falls back to download URL if no preview URL can be constructed.
Currently supported:
JSON string from SearchResultItem.RawMetadata
true if a preview was opened
Multi-provider note: callers running under a non-default
IMetadataProvider(multi-server clients) should setservice.Provider = component.ProviderToUsefrom a parent component before invoking any methods.