@spacehq/sdk > GundbMetadataStore > upsertSharedByMeFile
GundbMetadataStore.upsertSharedByMeFile() method
Inserts a new file. If a file with the same dbId, path and bucket slug exists, the existing record would be updated and returned.
Signature:
upsertSharedByMeFile(fileData: SharedFileMetadata): Promise<SharedFileMetadata>;
Parameters
Parameter | Type | Description |
---|---|---|
fileData | SharedFileMetadata |
Returns:
Promise<SharedFileMetadata>