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 / Display uploaded file ...
Power Apps
Suggested Answer

Display uploaded file size in MB/KB

(0) ShareShare
ReportReport
Posted on by
How to display uploaded attachments file size in MB/KB?
Categories:
I have the same question (0)
  • Suggested answer
    CU15051649-0 Profile Picture
    10 on at

    A common workaround is converting the file to JSON/Base64 and estimating the size using Len().

    Example:

    UpdateContext(
        {
            varSize:
            (Len(JSON(ImageControl.Image, JSONFormat.IncludeBinaryData)) - 814) / 1370000
        }
    )

    Then display:

    "Estimated file Size: "&Round(varSize, 2) &" MB"

    Note: this is an approximation, not the exact original file size, because Base64 encoding increases the payload size.

    Reference Article: 
    https://www.practicalpowerapps.com/data/attachmentsize/

     

    Hope this helps 🧑‍💻
    If it solved your issue, please mark it as the solution so others can find it easily ✅🙌

  • Suggested answer
    WarrenBelz Profile Picture
    155,838 Most Valuable Professional on at
    My blog on the various options for different scenarios is referred to above - happy to elaborate further.
     
    Please Does this answer your question 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 answering Yes to Was this reply helpful? or give it a Like
    Visit my blog
    Practical Power Apps    LinkedIn  

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard