Introduction: In this blog, we will understand how to download static files from PowerApps Portal.
Use Case: Let’s say you have a requirement where you want end-users should be able to download static files from PowerApps Portal.
Steps to be followed:
- Go to the Portal Management app.
- Go to Web Files.
3. Click on “+New”.
4. Enter details in the Web File record.
Name: Give any name to your web file record.
Website: Select your website.
Parent Page: Select the parent page of your web file. (I have selected the Home page)
Partial Url: Enter the partial URL.
Publishing State: Published.
5. Save the record.
6. After saving the record upload the file in the notes.
Once you have created a web file record and uploaded your file in notes go to the webpage from where the end-user can download this file from PowerApps Portal.
Add below code on the webpage.
<a href="/2021-agreement-file" download=""> <h4>Click to Download Office Rent Agreement</h4> </a>
Here in the href parameter of a tag, you have to pass the value of the Partial URL of your web file record.
- Click on Browse Website.
- Click on the link to download the file.