We help IT Professionals succeed at work.

Power app Issue

ukerandi
ukerandi used Ask the Experts™
on
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]
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Chief Technology Ninja
Distinguished Expert 2018
Commented:
Hi uekrandi,

Which is your data source? And can you confirm the file has gone in the data source?
Also, I am not sure whether you need to use Flow but maybe I do not have the entire idea of your app.

If you can explain, what exactly you are trying to do I might be able to suggest some shortcuts.

Regards,
Chinmay.

Author

Commented:
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

Author

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

Open in new window

Author

Commented:
But column(image1)  is in the data source(List)
Chinmay PatelChief Technology Ninja
Distinguished Expert 2018

Commented:
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.