Skip to first unread message
Assigned to halab...@google.com by taifu...@gmail.com

Kelson Fox

unread,
Mar 1, 2014, 9:13:38 AM3/1/14
to mitappinv...@googlegroups.com
Hi all


I am getting error 1104 everytime I click on the Post button (seems an error from android, before enter in PHP).
If I click by the second time, I get the file sent via php.

Does anybody know how to get rid of error 1104?

Thank you





Taifun

unread,
Mar 1, 2014, 11:24:57 AM3/1/14
to mitappinv...@googlegroups.com
does it work, if you use the example together with my server?
Taifun

Kelson Fox

unread,
Mar 1, 2014, 12:15:26 PM3/1/14
to mitappinv...@googlegroups.com
Hi Taifun

No, it doesn't.
I have downloaded again, used your own server and got the same problem.
Doing once is ok, but next time pops up "error 1104 unable do post", so I have to press "Post File" button again, then it's sent.

Look like cache is not cleaned or something interrupt the next file.

M. Hossein Amerkashi

unread,
Mar 1, 2014, 12:22:13 PM3/1/14
to mitappinv...@googlegroups.com
Kelson,

If of any help, you can capture the error using even Screen1.ErrrOccured.

-Hossein.

Kelson Fox

unread,
Mar 1, 2014, 12:29:33 PM3/1/14
to mitappinv...@googlegroups.com

Please find attached the screenshot


Screenshot_1.png

Kelson Fox

unread,
Mar 1, 2014, 12:32:00 PM3/1/14
to mitappinv...@googlegroups.com
Houssein,

I am going to try now and postback here soon. :)

Kelson Fox

unread,
Mar 1, 2014, 12:42:35 PM3/1/14
to mitappinv...@googlegroups.com

Find attached the error captured by Screen1.ErrrOccured.

component --- functionName --- errorNumber --- message




Screenshot_2.png

M. Hossein Amerkashi

unread,
Mar 1, 2014, 12:44:18 PM3/1/14
to Kelson Fox
It looks like you are not sending the right file. Look at the attached image and how the query parameter after the filename

-Hossein.


On Sat, Mar 1, 2014 at 12:29 PM, Kelson Fox <kelson...@gmail.com> wrote:

Please find attached the screenshot


--
You received this message because you are subscribed to the Google Groups "MIT App Inventor Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mitappinventortest+unsub...@googlegroups.com.
To post to this group, send email to mitappinventortest@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mitappinventortest/87232f2f-29bd-47e9-9f51-735de127b31a%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

foo.png

Kelson Fox

unread,
Mar 1, 2014, 12:51:52 PM3/1/14
to mitappinv...@googlegroups.com, Kelson Fox
The image file is correct (all jpg).

at the first time app is opened, file is sent with no problem
then picked a new image and when I click "Post File" I got the error 1104, if I click it again the file is sent, so the problem can't be query parameter (once it is sent)

M. Hossein Amerkashi

unread,
Mar 1, 2014, 12:55:36 PM3/1/14
to Kelson Fox, mitappinv...@googlegroups.com
Since you are saying when app is opened and works, do the the following:
Add in a multiline textbox and set to it the entire query that you are sending to the php server.
This way, you can compare that with what is not working on subsequent post.



--
You received this message because you are subscribed to the Google Groups "MIT App Inventor Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mitappinventort...@googlegroups.com.
To post to this group, send email to mitappinv...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mitappinventortest/0d6d0560-4a94-4799-83e0-c764456c18b7%40googlegroups.com.

Taifun

unread,
Mar 1, 2014, 12:59:49 PM3/1/14
to mitappinv...@googlegroups.com, Kelson Fox
No, it doesn't.
I have downloaded again, used your own server and got the same problem.
Doing once is ok, but next time pops up "error 1104 unable do post", so I have to press "Post File" button again, then it's sent.
just tried again several times without error... strange...
do you wait until the uploaded image is displayed or do you send another image before the first file transfer has been completed?
which device are you using?
Taifun 

Kelson Fox

unread,
Mar 1, 2014, 1:15:07 PM3/1/14
to mitappinv...@googlegroups.com, Kelson Fox
I wait until uploaded image is displayed, after everything completed.
I am using Samsung Galaxy S3


Kelson Fox

unread,
Mar 1, 2014, 1:24:07 PM3/1/14
to mitappinv...@googlegroups.com, Kelson Fox
Hossein,

What you mean "add multiline textbox" ?
See image attached (postfile button block), parameters look ok (after first image, second one is sent only if clicked twice)
There's something floating or missing after sent the first image I guess
postfile_button.jpg

M. Hossein Amerkashi

unread,
Mar 1, 2014, 1:49:54 PM3/1/14
to Kelson Fox, mitappinv...@googlegroups.com

I meant that for debug purpose only.
A textbox component work multi line property set to true

--
You received this message because you are subscribed to the Google Groups "MIT App Inventor Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mitappinventort...@googlegroups.com.
To post to this group, send email to mitappinv...@googlegroups.com.

Taifun

unread,
Mar 1, 2014, 3:00:11 PM3/1/14
to mitappinv...@googlegroups.com, Kelson Fox
I wait until uploaded image is displayed, after everything completed.
I am using Samsung Galaxy S3
can you test on another device?
this would help us to find out, if it is a device specific problem...
Taifun
 

Kelson Fox

unread,
Mar 1, 2014, 3:22:32 PM3/1/14
to mitappinv...@googlegroups.com, Kelson Fox
I got only this one.
I have tested on another S3 (my girl) but same problem...

Kelson Fox

unread,
Mar 1, 2014, 8:50:38 PM3/1/14
to mitappinv...@googlegroups.com, Kelson Fox
SOLVED ... But in a "UGLY" way

I have forced to repeat the Postfile when getting error 1104
See pic attached.


thanks to Hossein and Taifun
workaround.jpg

Paolo Marcheschi

unread,
Jul 8, 2014, 11:42:18 AM7/8/14
to mitappinv...@googlegroups.com, kelson...@gmail.com
Hi
I have the same error, but with different behavior with different phones.
The work around only Works with one error only with samsung S4 android 4.2.2
Does not work at all with another samsung with android 4.4.4 or Android 4.1.2

to see the number of errors I added the code as shown in picture.

Can you help

Thank you

Paolo
 
error1104.jpg

Taifun

unread,
Jul 8, 2014, 12:03:01 PM7/8/14
to
@Paolo: can you prepare a small project for MIT which shows this issue?
I do not have a Samsung device. As already said earlier, usinng a HTC Desire running Android 2.2 and Nexus 5 running Android 4.4.4 it works fine without any error
Taifun

Paolo Marcheschi

unread,
Jul 9, 2014, 11:41:21 AM7/9/14
to mitappinv...@googlegroups.com
Yes
I prepared a project
It is very basic and you have to change the url to point to the receiver.
It works with zero, one or two errors with a galaxy s4 model GT I9195
android version 4.2.2
kernel 3.4.0-2340422

it does not work at all with thousand errors an counting with
ASUS NEXUS 7
Android 4.4.4
Kernel 3.4.0-g03485a6

"Acquisisci" means take a photo with the camera
"Spedisci" means send the picture.

Thank you very much

Paolo
prova.aia

Francesco Cangialosi

unread,
Jul 17, 2014, 7:50:11 AM7/17/14
to mitappinv...@googlegroups.com
Hi, in my Samsung Tab 2 it's ok with the PEAR package  installed into the server. If file is little (a few of bytes) there are no errors but if the file is about 800kb or more I have error 1104. If I click for a econd time the button to post the file, I haven't error and the file will be posted in the server.

Francesco

Rafael Spessotto

unread,
Aug 23, 2014, 10:07:40 PM8/23/14
to mitappinv...@googlegroups.com
Taifun, i tryed your code, exactly what you posted, and always i get the error 1104 unable to put the file... i am using my localhost... Im trying in my webbrowser too and didnt worked...even in your server i get this error.... do u know what can be happening?
thanks!

Taifun

unread,
Aug 24, 2014, 10:02:07 AM8/24/14
to mitappinv...@googlegroups.com
unable to put the file
it seems to be you are using the PutFIle block?
use the PostFile block instead...
Taifun 

Rafael Spessotto

unread,
Aug 25, 2014, 7:51:17 AM8/25/14
to mitappinv...@googlegroups.com
Ops..sorry...i write wrong....its :

unable to post or put the file "/file1.txt" with the specified URL http://localhost/receive.php?filename=file1.txt%p=secret.

i tryed your server but doesnt work too... any idea? first im testing in the firefox, and later i will test in app..

regards,

Taifun

unread,
Aug 25, 2014, 10:05:05 AM8/25/14
to mitappinv...@googlegroups.com
did the example https://puravidaapps.com/postfile.php work for you?
Taifun

Rafael Spessotto

unread,
Aug 25, 2014, 10:43:58 AM8/25/14
to mitappinv...@googlegroups.com
Hi Taifun!!

No, didnt worked.... I download the code in your page and put the blocks, as you did in the example..but always gives me the message:


"unable to post or put the file "/file1.txt" with the specified URL http://localhost/receive.php?filename=file1.txt%p=secret."

:(

Rafael

Taifun

unread,
Aug 25, 2014, 3:57:10 PM8/25/14
to mitappinv...@googlegroups.com
the questions was, if the example works as it is with my server for you?
Taifun

Rafael Spessotto

unread,
Aug 25, 2014, 4:19:29 PM8/25/14
to mitappinv...@googlegroups.com
no...didnt worked... i tried to do in my own machine with xampp for the php, and nothing... so i tried to use your server...and the same error persists... even in the firefox didnt worked... the thing i saw is that the location where the file that will be sended is, when i try to send, gives me the error, but clear the file. Example. im trying to send message.txt with 10kb... when i try, gives me the error, and when i look the file, is with 0kb....

thanks for the answer,

Rafael

Taifun

unread,
Aug 25, 2014, 4:37:05 PM8/25/14
to mitappinv...@googlegroups.com
the first step is to get it running without changes in the blocks using my server
as Kelson reported here, error 1104 occurs on Samsung devices, but the second time the upload works
which device do you use for your tests? try also another device...
Taifun

Rafael Spessotto

unread,
Aug 25, 2014, 6:45:01 PM8/25/14
to mitappinv...@googlegroups.com
hum...ok... im testing in a LG device...but i put the block exactly how u teach in your website...but didnt worked...well..thanks for answer

Rafael

Taifun

unread,
Aug 25, 2014, 7:37:14 PM8/25/14
to mitappinv...@googlegroups.com
but i put the block exactly how u teach in your website
I recommend you to download the aia file from here, then upload it into App Inventor and test the example using my server to avoid errors in your blocks
Taifun

Rafael Spessotto

unread,
Aug 31, 2014, 12:44:05 AM8/31/14
to mitappinv...@googlegroups.com
Hi Taifun!

With your project works....i put exactly what u did in your project in my project and works...now i have one question...im trying to send a txt file...i dont understand the send process, because u put in the url path the image folder and in the postfile block you put the "imagepicker.selection"..in the txt file case, what i have to put in the PostFile block??

regards,

Rafael

Taifun

unread,
Aug 31, 2014, 9:26:53 AM8/31/14
to mitappinv...@googlegroups.com
trying to send a txt file
for sending a text file, use the file component to store the text in a text file on sd card,
then use the postfile block and the path to the text file
e.g. file:///mnt/sdcard/myFolder/myFile.txt
Taifun

sriram subramaniyan

unread,
Aug 31, 2014, 1:48:22 PM8/31/14
to mitappinv...@googlegroups.com
Hi Taifun,

Thanks for  your tip of (file:///mnt/sdcard/myFolder/myFile.txt)

I'm also pushing a txt file to server with the help of your code.

Initially i'm getting the the response of file transfer failed.

After changing the php://stdin to php://input, the file is transferred successfully.

Thanks a lot.




Rafael Spessotto

unread,
Sep 1, 2014, 2:36:00 PM9/1/14
to mitappinv...@googlegroups.com

Taifun, im testing yout tips, more or less like this? (see the image of the blocks)...(the first one im saving the file and the second one sending the file to your server).






Taifun

unread,
Sep 1, 2014, 4:52:38 PM9/1/14
to mitappinv...@googlegroups.com
I would use the complete path to the file, but probably it works also like that, did you test it?

file:///mnt/sdcard/etapasprogressao.txt

Taifun

Rafael Spessotto

unread,
Sep 1, 2014, 9:33:26 PM9/1/14
to mitappinv...@googlegroups.com
Its workd this way, but my problem is..each device saves the file in a particulary folder (to save the file i use "/textfile.txt" so it will be saved in the sdcard folder... but in other devices it will be saved in another folder..how to deal with this?

Taifun

unread,
Sep 2, 2014, 8:23:42 AM9/2/14
to mitappinv...@googlegroups.com
file:///mnt/sdcard/ is some kind of generic path which also works for emulated sd cards, just try it
Taifun

Rafael Spessotto

unread,
Oct 3, 2014, 3:02:04 PM10/3/14
to mitappinv...@googlegroups.com
Taifun and community,

Theres a way to send a file via get method..it means, dont send the parameters in the url to other can see?

thanks!

Rafael

Taifun

unread,
Oct 3, 2014, 3:19:25 PM10/3/14
to mitappinv...@googlegroups.com
@Rafael: if you use the postfile block, where does someone see the url?
if you are talking about the error case, you can catch errors in the Screen.ErrorOccurred event and hide the url there
Taifun

Rafael Spessotto

unread,
Oct 3, 2014, 3:32:34 PM10/3/14
to mitappinv...@googlegroups.com
Hi Tiafun! Always you saving me...lol

Exactly this... when dont have internet connection, the app gives a 1104 error...And show the entire url with the parameters..I put this in the ErrorOccurred... Maybe is an old version of the app...

thanks!

Rafael

Rafael Spessotto

unread,
Oct 13, 2014, 8:00:04 AM10/13/14
to mitappinv...@googlegroups.com
Hi Taifun and community!!

Im still trying to hide the http error messages... I catch the error.. When i do some post file, and return the error 1104. I put the ErrorOcurred and didnt show nothing.. But when i click on send button and press backspace, the error pops up in the previous screen... i put the ErrorOcurred block also in that screen, but continues to show me the postfile error with my url and parameters..i want to hide this.. :(

someone could help?

regards,

Rafael

Taifun

unread,
Oct 13, 2014, 9:15:15 AM10/13/14
to mitappinv...@googlegroups.com
to deactivate the Back Space button, just use an empty Screen.BackPressed event
Taifun

Rafael Spessotto

unread,
Oct 13, 2014, 9:56:45 AM10/13/14
to mitappinv...@googlegroups.com
but if i deactivate, how the user will exit this screen to the main screen?

Taifun

unread,
Oct 13, 2014, 10:19:35 AM10/13/14
to mitappinv...@googlegroups.com
add a button and put the close screen block into the button.click event
Taifun
Reply all
Reply to author
Forward
0 new messages