Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ Specifies a function used to generate secure signatures for authenticated reques

Use this option to enforce secure uploads, preventing unauthorized users from uploading files via your application.

For more information on Uploadcare Signed Uploads, refer to the official documentation at link:https://uploadcare.com/docs/security/secure-uploads/[Uploadcare Signed Uploads].

*Type:* `+Function+`

=== Example: Setting `uploadcare_signed_upload_auth_provider`
Expand All @@ -16,13 +18,19 @@ tinymce.init({
plugins: 'uploadcare',
toolbar: 'uploadcare',
uploadcare_public_key: '<your-public-key>',
uploadcare_signed_upload_auth_provider: (_publicKey) => Promise.resolve({
uploadcare_signed_upload_auth_provider: (publicKey) => Promise.resolve({
signature: 'sig',
expire: 123
}),
});
----

[TIP]
.Starter Project
====
To get started quickly and understand how Uploadcare Signed Uploads integrates with {productname} {pluginname}, {companyname} recommends trying the starter project on GitHub to set up {pluginname} with Signed Uploads. Clone the repository and follow the steps to set up the project. The link leads to the GitHub page for the starter project, where the source code is available for viewing: link:https://github.com/tinymce/tinymce-uploadcare-signed-uploads-starter[{productname} {pluginname} Signed Uploads Starter Project].
====

[IMPORTANT]
====
{companyname} recommends configuring the `uploadcare_signed_upload_auth_provider` option to secure uploads and prevent misuse of your Uploadcare `uploadcare_public_key`. This option is essential for applications requiring:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[[uploadcare-store-type]]
== `uploadcare_store_type`

Specifies the storage type for uploaded files. Use this option to control whether files are stored temporarily or permanently, or allow Uploadcare to decide automatically based on your account settings.
Specifies the storage type for uploaded files. Use this option to control whether files are stored temporarily or permanently, or allow Uploadcare to decide automatically based on your project settings.

* `auto`: Uploadcare decides the storage type.
* `temporary`: Files are stored temporarily and will expire after a certain period.
* `auto`: Defer the choice of storage behavior to the auto-store setting in the Uploadcare Dashboard.
* `temporary`: Files are stored temporarily and removed after 24 hours.
* `permanent`: Files are stored permanently in your Uploadcare account.

Select the appropriate value based on your application's requirements, such as whether files should persist for long-term use or be available for a limited time.
Expand All @@ -24,6 +24,6 @@ tinymce.init({
plugins: 'uploadcare',
toolbar: 'uploadcare',
uploadcare_public_key: '<your-public-key>',
uploadcare_store_type: 'permanent',
uploadcare_store_type: 'temporary',
});
----