For AI agents: the documentation index is at llms.txt. Guide pages have a markdown version at the same path with .md appended, before any query string or fragment.

Swift: Create signed upload URL

Create a signed upload URL that can be used to upload files to a bucket.

Examples

Create signed upload URL

let signedUpload = try await supabase.storage
  .from("avatars")
  .createSignedUploadURL(path: "folder/avatar1.png")

Create signed upload URL that can replace a file

let signedUpload = try await supabase.storage
  .from("avatars")
  .createSignedUploadURL(
    path: "folder/avatar1.png",
    upsert: true
  )