Skip to main content

createUploadUrl

createUploadUrl returns the full URL that the user’s phone should open to upload a file for a given job. This is the URL you encode in the QR code (and the one SyncsnapQrCode uses internally).

Usage

With a custom base URL (e.g. staging or custom domain):

Parameters

Return value

A string URL: baseUrl with a job_id query parameter set to jobId. The upload page reads this to know which job to attach the file to.

When to use

  • SyncsnapQrCode and SyncsnapUploadButton use this internally; you don’t need to call it if you use those components.
  • Use createUploadUrl when you generate the QR code yourself (e.g. another QR library or native app) or need the URL for sharing or deep links.

Example: custom QR library