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 / DIsplaying Attachment
Power Apps
Unanswered

DIsplaying Attachment

(0) ShareShare
ReportReport
Posted on by 517

Hi,

Can someone help? I have a custom form in my SharePoint list using PowerApps. I have set the required properties of attachment filed in to TRUE so that it will require the user to include attachment. There are cases where, even if the user added the attachment and proceeded with submission, when displaying the form of the item they had submitted, the attachment was lost. What could be the reason? One thing I assume is that the attachment content is null. Do you have any idea what else could be the reason for this?

 

Also, is it possible to display the attachment even if the content is null?

 

Appreciate your help on this. Thank you in advance

Categories:
  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @jaina ,

     

    Do you mean that the uploaded file is not displayed in the form after the user submits it? What about the other data in the form? Do they also disappear after submission? Please check if the file was successfully uploaded to the data source.

     

    I hope you can provide the code to submit the form and the Item and DefaultMode settings of the form. It would be better if you could provide some screenshots of the error messages.

     

    Best regards,

    Rimmon Li

     

     

  • jaina Profile Picture
    517 on at

    Hi @v-mengmli-msft thanks for replying. 

     

    All the data submitted were displayed in the form. There are cases only when attachments were not uploaded successfully to the SharePoint List.

     

    No error was prompted. It's just that there are cases where the user uploads an attachment. so the system can read it that's why the formula in the Submit button will proceed, but in displaying the form and checking on the SP list, no attachment was found.

     

     

    Form Properties

    DefaultMode:

     

    jaina_1-1695182172323.png

     

    Item:

    jaina_2-1695182228742.png

     

    Submit Button Settings

    On Select:

    jaina_3-1695182296710.png

    DisplayMode:

    jaina_4-1695182319058.png

     

    Display Form Properties:

    jaina_5-1695182577112.png

     

    jaina_6-1695182590778.png

     

    Attachment Default Property:

    jaina_7-1695182648140.png

     

     

  • Hasrie Profile Picture
    216 on at

    Hi @jaina , I'm not sure if Attachment can be set Required as it does not appear under SharePoint List > Setting > Column > tick/untick Required does not exist. 

  • jaina Profile Picture
    517 on at

    Hi @Hasrie,. attachment can be set the required property to true using custom form in power apps

     

    jaina_0-1695187831397.png

     

  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @jaina ,

     

    It seems that the source of the problem is that the file is not successfully uploaded to the SP List. After you added the Attachment to the Form field, did you make any changes to the attachments card? Please check the update property of your Attachments card.

     

    vmengmlimsft_0-1695188539180.png

     

    vmengmlimsft_1-1695188616811.png

     

    Best regards,

    Rimmon Li

  • jaina Profile Picture
    517 on at

    Hi @v-mengmli-msft , i didn't change the formula in update property of attachment

     

    jaina_0-1695189535742.png

     

    Please keep in mind that this issue isn't always happening; there are some instances only.

    One thing I assume is that some people may be attaching empty content or information. I am monitoring since I am not sure if some users are attaching no content.

     

    What I need is a formula condition that the system can use to determine whether the file they attached is empty inside (has no bytes).

  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @jaina ,

     

    Through my testing, I found that it is currently difficult to judge the size of a file through a formula and decide whether to upload it, which means you may need to build a flow to achieve this. You can refer to the solution:

    Solved: Attachment control file size minimum validation - Power Platform Community (microsoft.com)

     

    If you have any questions during the process of creating the flow, you can reply to me, and I will try my best to solve it for you.

     

    Hope this helps you!

    -----------------------------------------------------------------------------------------------------------------------------------

    If my answer solves your problem, please accept it as a solution to help more people stuck on the same problem find it.

     

    Best regards,

    Rimmon Li

  • jaina Profile Picture
    517 on at

    Appreciate your ( @v-mengmli-msft ) effort in checking the workaround on this issue. It looks like there is no resolution yet for this feature in PowerApps alone. I'll try to do the recommendation anyway, thanks!

  • Hasrie Profile Picture
    216 on at

    The issue is we do not know if the attachment got upload or not or lost or whatever. Why don't you add a notification popup where if the attachment upload fail or success, so you know this is not the issue

  • jaina Profile Picture
    517 on at

    Hi @v-mengmli-msft ,did you try to attach file without content? The validation is after the submission. For example you have a text file, but when you open, no data. Try to attach it in SP List custom form using power apps, the formula works only to check if there is a file attached to it or none.

     

    SAMPLE ATTACHMENT WITOUTH CONTENT

    jaina_0-1695197320442.png

     

    jaina_3-1695197645808.png

     

     

    so as you can see, the submit button enabled since there is a file attached, but when submitted, it will disappear and not recorded in the SP list.

     

    jaina_2-1695197464534.png

     

    but when the file has content, it will be saved.

     

    jaina_4-1695197766994.pngjaina_5-1695197792656.png

     

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard