@wix/auto_sdk_rich-content_ricos-documents 1.0.55 → 1.0.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -57,13 +57,25 @@ interface GenerateFileDownloadUrlSignature {
57
57
  declare function generateFileUploadUrl$1(httpClient: HttpClient): GenerateFileUploadUrlSignature;
58
58
  interface GenerateFileUploadUrlSignature {
59
59
  /**
60
- * Generates a URL for uploading a file to the site's Media Manager, so the file can be added to a Ricos document.
60
+ * Generates a URL for uploading a file to the site's Media Manager, so you can add the file to a Ricos document.
61
61
  *
62
- * Upload the file to the returned `uploadUrl` with a `PUT` request. The response of the upload request
63
- * contains the uploaded file's descriptor, including its ID. Specify `private` as `true` to upload a file
64
- * that can't be accessed from its file URL. Use [Generate File Download URL](https://dev.wix.com/docs/api-reference/assets/rich-content/ricos-documents/generate-file-download-url) to download private files.
62
+ * To upload the file, send a `PUT` request to `uploadUrl` with the file content as the request body and a
63
+ * `Content-Type` header that matches `mimeType`. If you didn't specify `fileName`, add the file name as the
64
+ * `filename` query parameter. For example, `PUT {uploadUrl}?filename=report.pdf`. The URL expires after 24 hours.
65
+ * Learn more about the [Upload API](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/upload-api).
65
66
  *
66
- * Site visitors and members can call this method.
67
+ * The upload response contains the uploaded file's
68
+ * [file descriptor](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-descriptor-object).
69
+ * Specify its `file.id` as the file node's `fileData.src.id` in the Ricos document.
70
+ * A successful upload response doesn't mean the file is ready. To run code when it's ready, listen for the
71
+ * [File Ready](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-descriptor-file-ready) and
72
+ * [File Failed](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-descriptor-file-failed) events.
73
+ *
74
+ * Use this method to let site visitors and members add files to the content they create.
75
+ * To download a private file, call [Generate File Download URL](https://dev.wix.com/docs/api-reference/assets/rich-content/ricos-documents/generate-file-download-url).
76
+ *
77
+ * This method doesn't support resumable uploads. For the supported file types and sizes, see
78
+ * [Wix Media: Supported Media File Types and File Sizes](https://support.wix.com/en/article/wix-media-supported-media-file-types-and-file-sizes).
67
79
  * @param - MIME type of the file to upload. For example, `application/pdf`.
68
80
  */
69
81
  (mimeType: string, options?: GenerateFileUploadUrlOptions): Promise<GenerateFileUploadUrlResponse>;