Mika Scraper / UploadCredentials
Interface: UploadCredentials
Defined in: src/_other-scraper/translate-image.ts:9
The UploadCredentials
interface represents the necessary credentials for uploading files to Aliyun Object Storage Service (OSS). This structure is essential for ensuring secure and authenticated interactions with the OSS.
Properties
host
host:
string
The endpoint URL for the Aliyun OSS service. This property is necessary to direct the upload request to the appropriate service.
dir
dir:
string
The directory (path) within the OSS bucket where the file will be stored. Specifying the directory helps in organizing uploaded files.
accessId
accessId:
string
The unique identifier for your Aliyun account, which is used to authenticate API requests. This property must be securely managed as it grants access to your OSS resources.
policy
policy:
string
The security policy that governs the upload operation, defining the permissions granted to the upload request. This should be configured to suit the specific security requirements of your application.
signature
signature:
string
A cryptographic signature that verifies the requestβs authenticity and integrity. The signature ensures that the request has not been tampered with and is coming from a legitimate user.
callback
callback:
string
A URL endpoint that the OSS service will call after completing the upload. This is useful for handling asynchronous operations following the upload process.
fileUrl
fileUrl:
string
The URL generated for accessing the uploaded file from the OSS. This URL can be used to retrieve or share the uploaded content.