Skip to content

Why did adding a file picker preview change which video my API request actually used?

Check whether the app uploaded the original file or a transformed preview artifact. A thumbnail, transcoded copy or browser object URL is useful for display but is a different reference source.

SHIP A RELIABLE INTEGRATIONAISwapLab team · Editorial methodPublished 2 min read
Open API documentationExplore 67 Image SkillsPrivate keys · Explicit credit approval

Separate state

Store the approved original file and preview state in different fields. Record whether a transcoding step is intentional and preserve source-relative timing.

Verify the outgoing file kind

Before upload, confirm the binary, byte count and allowed media type. Compare the returned API kind and validated duration.

Test a source change

Pick a second file and ensure any older preview task cannot replace the original approved input in flight.

Pass condition

The selected and quoted asset is the one intended for generation, independent of how preview renders it.

Sources

One task. A recoverable workflow.

Check the contract, approve the quote and retain the job.

Open API documentation