I want to view a notes file attachment in the browser instead of downloading it when clicking on it. Tried many searches and routes and nothing is panning out.

I want to view a notes file attachment in the browser instead of downloading it when clicking on it. Tried many searches and routes and nothing is panning out.
@z3ror00to view a notes file attachment in the browser instead of downloading it directly, you can utilize a combination of Power Apps formulas and controls. Here’s a general approach you can take:
1. Create a Link: Instead of directly attaching the file, create a hyperlink to the file location in a Text control. For example:
"Click here to view file"
2. Use OnSelect Event: Attach an OnSelect event to the Text control. In the OnSelect event, use the Launch function to open the file in the browser. For example:
Launch("https://yourfilelocation.com/yourfilename.txt", LaunchTarget.Browser)
3. Configure File Permissions: Ensure that the file you’re linking to is hosted in a location accessible by the users of your Power App. You may need to adjust file permissions accordingly.
4. Handle Different File Types: Depending on the file type, you may need to handle the URL differently. For example, for images or PDFs, you can often directly link to the file URL. However, for other file types like Word documents or Excel spreadsheets, you might need to use a service like Microsoft Graph to render the file in the browser.
If I have answered your question, please mark your post as Solved. If you like my response, please give it a Thumbs Up. Remember, every challenge is an opportunity for growth.