Download from URL

The Download from URL method allows users to provide a direct link to a file, which will then be downloaded and added to the file list in the uploader.

✅ Validations After Download

Unlike the drag-and-drop or file picker methods, validations for file type, size, are applied after the file is downloaded. This is necessary because the system can only analyze a file’s format and weight once the file data is available.

If the downloaded file doesn’t meet the rules you’ve defined, the uploader will:


⚠️ CORS Warnings – Explained Simply

Imagine you're trying to grab a cookie from your neighbor’s house through their window, but they only give cookies to people who come in through the front door.

That’s how CORS (Cross-Origin Resource Sharing) works.

When your app tries to download a file from another website, it's like trying to get something from someone else’s house. The server (the neighbor) checks:

  • “Who’s asking?”

  • “Is this person allowed to get this file?”

If the server doesn’t explicitly allow files to be downloaded from your app’s location (origin), the request gets blocked by CORS, and the download will fail.

🎯 Example: When CORS blocks the download

Let’s say you see a nice banner on a site like somesite.com/banner.jpg. You copy that image’s URL and paste it into the uploader. If somesite.com only allows downloads when users are browsing their site, your request will be blocked.

That means: “Sorry, you can’t download this file unless you’re inside this site.”

✅ Example: When CORS allows the download

Now try a file from a site like imgur.com:

https://i.imgur.com/CS0cI1d_lq.mp4

This file will download just fine because Imgur allows downloads from any app or website. That means their server doesn’t block you based on where you’re requesting from. In CORS terms: "no restrictions".

Last updated