Page 1 of 1
mobilepickPhoto Library
Posted: Fri Jun 22, 2018 4:05 am
by jwtea
Hello guys , can i know path of the image which is pick by using mobilepickPhoto Library function??
(My button to upload the image)
Code: Select all
on mousedown
set the lockloc of the templateimage to true
set the width of the templateimage to "131"
set the height of the templateimage to "121"
set the location of the templateimage to 109,308
mobilePickPhoto "library"
set the name of last image to "myImage"
end mousedown
I tried this code below but in my fld "imagepath" is it empty.... Anybody know why??
Code: Select all
on mousedown
put the filename of img "myImage" to fld "imagepath
end mousedown
Re: mobilepickPhoto Library
Posted: Fri Jun 22, 2018 8:15 am
by Klaus
Hi jwtea
some hints:
No need to put QUOTES around NUMBERS!
-> set the width of the templateimage to 131
put the filename of img "myImage" to fld "imagepath"
-> put the filename of img "myImage" INTO fld "imagepath"
You do not see the path to the image because "mobilepickphoto" will COPY the user selected image into your stack, so it does not have a filename anymore.
Best
Klaus
Re: mobilepickPhoto Library
Posted: Fri Jun 22, 2018 8:37 am
by jwtea
Hello Klaus , thanks for the tips!
The reason why i want the path to the image is because i want to upload the photo that is pick by the mobilepickPhoto Library function to my server ~ ~
Re: mobilepickPhoto Library
Posted: Fri Jun 22, 2018 8:41 am
by Klaus
Do you really need a FILE for that?
Re: mobilepickPhoto Library
Posted: Fri Jun 22, 2018 9:14 am
by jwtea
Hello Klaus , thanks for your responsive reply!
Is there any way to have the file name of the image that is pick by the mobilepickPhoto function??
Re: mobilepickPhoto Library
Posted: Fri Jun 22, 2018 9:18 am
by Klaus
No, sorry.
Re: mobilepickPhoto Library
Posted: Fri Jun 22, 2018 9:23 am
by jwtea
So for mobilepickPhoto Library , there is no way i can get the path of the image chosen?
Re: mobilepickPhoto Library
Posted: Fri Jun 22, 2018 9:30 am
by Klaus
NO-HO!
Your message contains 9 characters.
You need to enter at least 10 characters.
Re: mobilepickPhoto Library
Posted: Fri Jun 22, 2018 12:31 pm
by Klaus
Please don't shoot the messenger!
This is due to security reasons a.k.a. "Sandboxing", we cannot access the original data of other apps, but this way we can, however not directly.