Methods
NoCloud.isAvailable
NoCloud.isAvailable
Checks if the NoCloud service is available by pinging the service endpoint.Returns
Promise<boolean>-trueif the service is available
NoCloud.storage.upload
NoCloud.storage.upload
Uploads a file to NoCloud storage.Parameters
- file:
Blob | File- The file or blob to upload - metadata:
Record<string, any>- Key-value pairs for custom metadata (optional)
- id:
string- Unique media ID - url:
string- The media URL of the uploaded file
NoCloud.storage.getPresignedUrl
NoCloud.storage.getPresignedUrl
Obtains a presigned URL for uploading a file.Parameters
- contentType:
string- MIME type of the file (e.g.,image/png) - size:
number- File size in bytes - metadata:
Record<string, any>- Key-value pairs for custom metadata (optional)
- url:
string- The presigned URL to upload the file - mediaUrl:
string- The final URL where the uploaded file will be accessible

