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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Attachments Control - ...
Power Apps
Answered

Attachments Control - prevent new file upload

(0) ShareShare
ReportReport
Posted on by 5

Hi,

 

I would like to use an attachments control to allow users to view and delete attachments but not to upload new files (as this is done through a separate workflow).

 

Is there a way to ensure that users cannot upload new files using the attachments control?

 

Thanks,

Steve

Categories:
  • LaurensM Profile Picture
    12,516 Moderator on at

    @stephenbourne would it be possible to set the DisplayMode of the attachment control to DisplayMode.View:

     

    DisplayMode – Whether the control allows adding and deleting files (Edit), only displays data (View), or is disabled (Disabled).


    If this fully answers your question, would you be so kind as to accept it as a solution.
    Thanks!

    Edit: I did not read view & delete, please ignore the above

  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    @stephenbourne after testing I came up with the following solution:

    (1) DisplayMode should remain DisplayMode.Edit

    (2) Add the following code to the OnAddFile property:

    Reset(Self); Notify("Adding attachments is not allowed", NotificationType.Error)


    This should do the trick.

    If this fully answers your question, would you be so kind as to accept it as a solution.

  • stephenbourne Profile Picture
    5 on at

    @LaurensM - Amazing - this is exactly what I needed

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard