Uploads
Let your users upload files (images, pdfs, docs, audio, videos, and more)
Last updated
Let your users upload files (images, pdfs, docs, audio, videos, and more)
Last updated
Create lets you make apps that handle file uploads. You can build galleries, portals, content sites and more. Or just let your users set a profile picture.
Create supports file uploads in Pages, Functions, or Components.
Create will write the code to support uploads based on your prompt. We recommend specificity in how you want to support uploads. Some common details to include:
UI around uploads
How the app should handle different states (uploads, error, success, etc.)
How the app should use the upload
Examples:
"Allow the user to upload an image as part of the form"
"Let users upload videos using a file selector. After the video is uploaded, show a preview"
"When the user drags a PDF onto the screen, upload it and store it in [your database]" (see: Databases)
Create stores files in a built in file storage for your app, and returns a URL to the file after upload.
Prompt your app to store this upload URL in Database to let your app retrieve it later.
Note: if you do not tell Create to store this URL somewhere (a Create database or an external database) then your app will allow uploads, and turn them into persistent URLs, but it will be difficult to retrieve these uploads later on.
Create supports file, URL, base64, or arraybuffer uploads.
Use this to create different upload experiences for different file sources (e.g. URL upload, desktop file select, copy / paste, drag and drop, etc.)
The max file size for any one upload is 10mb
Prompt Create to show an error if your users upload a larger file size.