saniazkhaja / Intro-To-Serverless

GNU General Public License v3.0
1 stars 0 forks source link

Week 4: Downloading your image! #60

Closed counselorbot[bot] closed 2 years ago

counselorbot[bot] commented 2 years ago

Week 4 Step 4 ⬤⬤⬤⬤◯◯◯ | 🕐 Estimated completion: 5-20 minutes

Downloading your image!

Demo: 🐰

Write and connect a JS file to make a GET request to the download Azure function that includes the codename to receive the link. Edit the button on the HTML page so that it downloads the file when clicked.

✅ Task:

🚧 Test your Work

Open up your LiveServer plugin and start your local server. To test your web app:

⚠️ Type in the username for an image you have uploaded previously. Does the download button link to your file?

1: Opening a link

window.open() is fairly straightforward to use. Here's the syntax:

window.open(URL, name, specs, replace)

⭐ We will only be using URL and name. Use this documentation to fill it in.

📹 Walkthrough Video

walkthrough video

counselorbot[bot] commented 2 years ago

🐰 Bunnimage: Complete!

Hop on over to the next issue.

bunnies