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 / PowerApps attachment c...
Power Apps
Answered

PowerApps attachment control not always getting the file extension

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all. I have som challenges using the Attachment control in PowerApps. I´m using it to upload images to a SharePoint list, and most of the times it works just great, but for some reason it does not always get the file extension, and the picture ends up beeing a file with no extension. Please see the picture below.

PowerAppsAttachments.PNG

If the file extension is not available it will get the name "photo-xxxxxxx" and that has nothing to do with the actual name of the file. I have searched for solutions but have not found anything yet. Can anyone explain why this is happening?

 

Greetings from Denmark

Frank

Categories:
  • Verified answer
    v-sheyu-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Can you share a bit more about your issue ?

     

    Do you mean when you upload the files ,some files have no extensions ?

    Do you change the type of files ?

     

    5.PNG

     

    Please check if you save the image files as a proper image type .

    please check if you add proper extension name .

    Please try to remove Attachment control and re-create it.

    If the issue is still existed , please try to re-create a PowerApp .

     

    Regards,

    Eason

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Eason. I did some realy hard debugging last night, and found that some of my pictures only had a filename for example "IMG_20190120_180804.jpg". Othes of my pictures also have a path for example "/storage/emulated/0/DCIM/Camera/IMG_xxxxxx.jpg".

     

    Pictures with the path were able to be uploaded just fine to sharePoint with my PowerApps solution, while pictures without the path did not get any file extension (file type). I think I have to make a flow to check the filename, and update it with a file extension if it does not contain ".jpg". That would be a workaround.

     

    Thanks for your quick reply to my question, and for taking the time Smiley Very Happy

     

    Greetings from Denmark

    Frank

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 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard