Notifications
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 711 Most Valuable Professional
Michael E. Gernaey 319 Super User 2025 Season 2
Power Platform 1919 268