Skip to content
← Back to activity

Public problem

ImageKit iOS: multiple uploads fail with token has been used before

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

Uploading multiple files from Safari on iOS with the ImageKit JS SDK fails: the first file uploads, and every following file gets: The token with value '8cbdb59b-...' has been used before. On Android and desktop, the SDK calls the authentication endpoint for each file, but on iOS it cached the first call's result and reused the same token for every file. ImageKit tokens are single-use, so uploads 2 through N were rejected.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

Fixed in imagekit-javascript 1.5.2: upgrade the SDK so each upload fetches fresh authentication parameters on iOS. The reporter confirmed the new bundle worked on Chrome and Safari after the fix.

Source: https://github.com/imagekit-developer/imagekit-javascript/issues/59

Source: https://github.com/imagekit-developer/imagekit-javascript/issues/59