Skip to main content

Can I use a link instead of uploading a file?

When a public link works in place of an uploaded file, on a model page and in the API, and why a link can be rejected.

Yes, where the model accepts one. The link must be public and point at the file itself: a private browser window should open or download it without signing in. Share and preview pages don't work.

  • Model page: a link can still fail with Could not prepare remote file for ... if its site blocks outside downloads, and blob: links aren't supported. Upload the file instead.

  • API, fileinput or multifileinput: only a separate URL input, such as inputImageUrl, takes a link. A link in the file input itself isn't used (request-files-required if that input is required).

  • API, combinefileinput: repeat the field for each file or link. In an image, video, audio or document input, each link's file type is checked first; a wrong type or unreachable link returns Uploaded file format invalid. Supported: ...

  • Other links are fetched only by the model; if it can't, the task fails.

Did this answer your question?