I am using https://puravidaapps.com/postfile.php to upload files online! i changed the link to upload on my own server and the script works fine! if i choice a file from my smartphone i can upload it on my webserver!
Is it possible to make a photo using camera and automatically upload it online via php script?
Look at the value of “image” returned from the afterPicture event. You will need to modify the url. Compare this with the url you get for imagePicker.Selectio.n
if i want to change the folder where i want to save the photo done with the camera.
is it possible? because when i click on imagepicker1 i cannot see that folder!
but if i search in my smartphone photos done via app are saved in folder /Pictures/
in the meanwhile i tryed to see the name of image saved on smarthphone in a label
but i cannot move them in a folder that the app can see clicking on imagelistpicker1
you might want to use a correct file name as toFIleName… you are currently using a directory name only
also the suggestion was to use the Copy method rather than the CopyAsync method…
for now i move the file on that folder with a “test.jpg” name and seems that file is moved but when i click on listpickerimage1 i cannot see the photo that i did!
if i close and reopen the app i can see the image…
where i choice the/a photo from the smartphone and i upload on my ftp!
But Is it possible in some way to call a procedure or something like that after.Picture stores the photo in the smartphone but ALSO upload automatically on the ftp?
but i don’t know what i have to put instead of ImagePicker1.selection!
because i don’t select but i have to put the path i think, but i don’t know how to do that
for the procedure you might want to define an input parameter, i.e. the image you like to upload
in the first case it is imgServer.Picture
in the second case it is ImagePicker.Selection
Is what i tryed to do on second attempt i inserted in Path of call web1 the Path of the file from the smarthphone
I Will try with img.Server.Picture…
the other part of procedure is ok?
the suggestion was to use an input parameter for the procedure, so you can use it for both cases…
see also https://appinventor.mit.edu/explore/ai2/support/concepts/procedures
also to use twice the global variable strPath in the join block of the Url does not make much sense, does it?
you might want to do some tutorials to learn the basics…