Announcements
We are using the Power Apps Attachments control to upload files like word documents, excel sheets etc. By using PowerApps without Flow How to validate the uploaded file size is greater than 0 KB or not? if the file size is 0 KB then display error message to the users.
Hi @rkgoriparthi ,
The file size can only be judged after the user uploads it.
If the file size is 0KB, delete the file, otherwise keep it.
I assume you save the attachments to the attachment column in list.
I did a test for you.
1\ This is my flow 'Test50'.
Id: Ask in powerapps
Value:div(int(length(string(outputs('Get_attachment_content')?['body']))),1024)
How to validate the uploaded file size is greater than 0 KB or not? if the file size is 0 KB then display error message to the users by using only PowerApps without Flow?
This is impossible. Just using powerapps can't meet your requirements.
Best Regards,
Wearsky
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 396 Most Valuable Professional
11manish 134 Super User 2026 Season 2
MS.Ragavendar 101 Super User 2026 Season 2