web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Disable Attachment Dow...
Power Apps
Unanswered

Disable Attachment Download on View-Only Form

(0) ShareShare
ReportReport
Posted on by 10

Hi, 

 

We're working on a form & we would like to make attachment names read-only & not download-able. The user can only see a read-only form (backed by a SharePoint List) but when they click, they can download the attachment. Can this feature be disabled? 

 

I guess if it cannot be disabled on the DataCard item, I suppose the work around could be logic to read the names of the attachments & not use an attachment data card.... 

 

Thanks

M

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    Hi @mschechter1 ,

    A bit of a workaround, but this works:-

    1. Add a Custom Card to the form
    2. Add a List Box into the card
    3. Set the Items of the List Box to ThisItem.Attachments
    4. Set the DisplayMode of the List Box to DisplayMode.View

    It will display only the names of the attachments.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    Hi @mschechter1 ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • kouliscon Profile Picture
    247 on at

    hello @WarrenBelz 

     

    i am trying to do what you mention but i cannot figure out what you mean by 

    1. Add a Custom Card to the form - i have a screen at canvas and then i have an edit form
    2. Add a List Box into the card - where is that exactly
    3. Set the Items of the List Box to ThisItem.Attachments
    4. Set the DisplayMode of the List Box to DisplayMode.View

     

  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    @kouliscon ,

    Custom Card is added to your Form

  • Community Power Platform Member Profile Picture
    on at

    Hi @WarrenBelz Could I ask a question about powerapps?

    Could you please kindly tell  if there is any way to block attachment downloads for the Powerapps app which data input is from sharepoint list.

    I have tried the following steps to set the attchments open by brower.

    1. Select the Attachments data card, and unlock it.

    2. Add a blank vertical gallery, cut and paste it into the Attachments data card.

    3. Set the "Items" property of the gallery to "ThisItem.Attachments"

    4. Click the edit icon of the gallery, then add "HTML Text".

    5. Select the "HTML Text", and enter the following html in "HtmlText" property:
    "<a href='" & ThisItem.AbsoluteUri & "?web=1' target='_blank'>" & ThisItem.DisplayName & "</a>"

    But I still want to set it view only and the download option is not available.

    TiffanyJo_0-1673843845062.png

     

     

  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    HI @Anonymous ,

    Where is that menu bar screenshot from (SharePoint ?). In PowerApps you can follow my original post - bear in mind that if you allow someone to open a file, they can then simply save it from the opened file.

  • Community Power Platform Member Profile Picture
    on at

    Hi @WarrenBelz Thank you for your reply.

    When share the file in the document library, we can set it Can View and Block download.

    For the attachment files of a share point list, it is difficult to get the URL of the file that Can View and Block download. Is my understanding correct?

  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    @Anonymous ,

    Yes - as I mentioned, if you are going to allow the user to open the file via URL, then what happens after is completely outside the control of Power Apps and the user can simply save the opened file with whatever app opens it on their device.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard