Skip to first unread message

SERKAN GÜL

unread,
Jun 27, 2018, 6:00:08 PM6/27/18
to mitappinv...@googlegroups.com
I have uploaded a file called AppUpload to my website. AppUpload contains the uploads folder and the index.php script. My aim is to use index.php to store the phone images in a folder. In the code blocks I wrote with AppInventor, I want to send a picture to the uploads folder on my phone. However, while the system is running on localhost, it is not running on the web server. This saves the image names, but the image files are not saved.
How can I overcome this problem?
index.png
appinventor2.png
blok.png
website.png
hata.png

Taifun

unread,
Jun 28, 2018, 9:08:13 AM6/28/18
to MIT App Inventor Forum
use the PostFile method and make sure, the URL to your script is correct
and use the Web.GotText event to find out, if the upload was successful
see also
Taifun

SERKAN GÜL

unread,
Jun 28, 2018, 12:32:00 PM6/28/18
to MIT App Inventor Forum
Thanks Taifun for suggesting. I realized all the steps in the proposal. But the result was again negative. Image file not saved.
image I saved the files PHP_compat-1.6.0a3, package.xml and postfileV2.php in the name file. And I uploaded the image file to my server.(test-1.jpg and test-2.jpg) 
But I do not know exactly where the mistake is. The image is no longer saved. I get two kinds of mistakes.

1 Error 1104 (error-1.jpg)
2- File transfer failed. (error-2.jpg)

How can I overcome all of them?

I added the image file that I uploaded to the server and my work as aia. I can not find the mistake. How am I going to solve this problem?
image.rar
postfile.aia
test-1.jpg
test-2.jpg
error-1.jpg
error-2.jpg

Taifun

unread,
Jun 28, 2018, 12:41:30 PM6/28/18
to mitappinv...@googlegroups.com
you might want to consider to use the ftp extension to transfer the file to your server

Taifun

SERKAN GÜL

unread,
Jun 28, 2018, 1:12:28 PM6/28/18
to MIT App Inventor Forum
Yeah, the solution looks good. But I am an amateur developer and I do not have enough money for now. I am a student. Is there another way to solve it? or what is wrong with the aia file and other files I have shared above?

Taifun

unread,
Jun 28, 2018, 2:02:09 PM6/28/18
to MIT App Inventor Forum
sorry, I don't know ...
probably someone else likes to spend some time to fix your project for you...

alternatively upload your files to Dropbox
Taifun

Juan Antonio

unread,
Jun 28, 2018, 2:49:43 PM6/28/18
to MIT App Inventor Forum

SERKAN GÜL

unread,
Jun 29, 2018, 5:33:56 AM6/29/18
to MIT App Inventor Forum
Thank you Juan. It use It's great. .

Reply all
Reply to author
Forward
0 new messages