Uploading Images & Videos

Use the CldUploadButton or CldUploadWidget components to add upload capabilities to your app.

The components utilize the Cloudinary Upload Widget, built for Svelte.

Example

<script>
	import { CldUploadButton } from 'svelte-cloudinary';
</script>

<CldUploadButton
	onUpload={onUploadCallback}
	signatureEndpoint="<Endpoint (ex: /api/sign-cloudinary-params)>"
	uploadPreset="<Upload Preset>"
>
	Upload to Cloudinary
</CldUploadButton>

Learn More


MIT 2023 ©