Avatar of ukerandi
ukerandi
Flag for United Kingdom of Great Britain and Northern Ireland asked on

Power app Issue

Hi Experts

I have already write the Power App to upload the
Image. there are few issues
01.It's uploading the file.But when click on the image it's not showing

See code below
MyPicsGallery= Gallery
FileLinkflow = Variable
TakenPic =Variable
UplaodImageV2.Run - it's runing Power App work flow and returning filename.
all are working fine without error.But when i'm going to see the Image it's
"Hmm ...looks like this file doesn't have a preview we can show you"
and then after download the uploaded file it will show
"It appear that we don't support this file format"
[code]
pdateContext({TakenPic: MyPicsGallery.Selected.Value});Set(
    FileLinkflow,
    UplaodImageV2.Run("abc.jpg",TakenPic).filename)


[Code]
Microsoft SharePointMicrosoft 365* powerapps

Avatar of undefined
Last Comment
Chinmay Patel

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Chinmay Patel

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ukerandi

ASKER
Thank you very much for your reply

Which is your data source?

above code there is no data source. it's only taking picture from galary updating the
folder in the sharepoint.
but also i tried to use
following code to upload image using patch command it's not working
Patch(TestImages,Defaults(TestImages),{Title:DataCardValue6.Text,image1:AddMediaButton3.FileName }) 

Open in new window




Error :
The specified column generate by server can't specified

TestImages - is Data source name
image1 is List field name and it's data type in the List is Picture

My aim is : upload the image to sharepoint List
ukerandi

ASKER
also tried like this
but same error
Patch(TestImages,Defaults(TestImages),{Title:DataCardValue6.Text,image1:UploadedImage3.Image}) 

Open in new window

ukerandi

ASKER
But column(image1)  is in the data source(List)
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Chinmay Patel

Hi,

I am not sure my comment qualifies as an answer. You can post your solution here and mark it as Answer. It is a good practice as someone who is struggling with PowerApps might find your comment more useful.

Regards,
Chinmay.