Slate Cloud
slate-cloud
adds images and attachments to Slate that are hosted in the cloud using Portive's cloud services for rich text editors.
Upload files using paste, drag & drop or standard <input type="file">
controls.
This plugin works with Portive, the hosted back-end for rich text editors and file upload components. It is a service which hosts files and provides other services for UI components that need to interact with a server.
Start with our Getting Started Guide.
Images uploaded to a scalable hosted service built on Amazon Web Services
Resizes images by dragging a resize bar
Images are resized on the server for faster downloads and reduced bandwidth
Uses HTML srcSet
to deliver higher resolution images to displays with higher DPI (e.g. high resolution images will be delivered at 2x the resolution if possible)
Shows the width/height while dragging for precise resizing
While images are uploading, a live progress bar is shown
The progress bar is not part of Slate's edit history which means undo won't undo progress bar movement
Uses a CDN for fast performance
Specify default max width/height for initial view (e.g. you can default to a preview with a width of 320px or go full width)
Images are just a Slate Element that you define. Just add the <HostedImage>
component inside it where you want the image to be shown. Because it's just a Slate element you can do all the following:
Coming Soon:
Default implementation shows attachment block with filename, file size (friendly format like 12KB) and the progress bar
Supports progress bar while uploading on custom attachments with a <ProgressBar>
Component
Fully customizable to display aspects like size of file, original filename and who uploaded the attachment.
Has an async save
method that ensures that all the images and attachments have finished uploading with an optional timeout. If the timeout is reached first, will return the document without the completed uploaded.
Uses a secret API key just for you that gives you control over who can upload, how much and for how long giving you secure control over uploading.
Coming Soon:
johndoe
can upload up to 1 GB and then he is shown a message and given a link to the upgrade page.