Before being able to provide you support, we need to know as much as possible about what your are trying to achieve, and how your are going about it. We don't know if it is an AI2 issue because there are so many external variables that come into play. From what you have said:
You are using the web component with the POST (file?) block ?
You are posting files (?) but we don't know what type of files ?
You are posting to an online server which is running a "php program", but we don't know how the php program works, how the server is setup or what is being used to store the file once it arrives at the server ? Is it your own server ? LAMP/WAMP/Other ? php/mySQL or just php ?
Have you been through the server configuration to check for settings that might be causing this ?
Can you upload any file through other means, curl etc ?
This suggests a timing problem, where the small size of the file is causing the transmitter to machine gun the files faster than the receiving end can file them.
Does the receiving end announce readiness for the next file, so the transmitting side can use that as a trigger for sending the next file?
Alternative idea:
I vaguely remember a limit of 256 files per directory in some old operating system versions. Does your small file size cause increased directory size, hitting some O/S limit?
It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.
To get an image of your blocks, right click in the Blocks Editor and select "Download Blocks as Image". You might want to use an image editor to crop etc. if required. Then post it here in the community.
Additional Info:
Files are jpg or png pictures. They are being transmitted one at a time, not in batches of many. Existing code pair (AI and PHP) sends and receives successfully anything that is larger than approx. 1200 bytes. Once I go below that size, nothing even transmits. On a NOTEII (Android Ver 4.4.2) I get no errors, but on a S5 (Android Ver 6.0.1) I get 1104 error after waiting over a few minutes.
Can anyone confirm if they are able to xmit files of 1 - 1K size range ?
I set this up on my server, and tested with a small jpg 997 bytes.
Using companion this uploaded just fine to the server with the expected response from the php:
We're in the XFER Program...
Receiving: tinypic.jpg
Bytes written: 997
Duration: 0.0002620221843262
I used companion on my genymotion emulator (Google Pixel 3XL/Android 9), can test on other emulated devices / android versions or on real device HTC10/Android 7
@ABG:
Even though I do not know for a fact, I am leaning towards "it returns only after the file has been completely stored". The reason being that my PHP timing takes up to several seconds for very large files; and I am displaying that millis time upon return.
@TIMAI2:
My server values are the same except max_input_time = 60. Mine is -1, which means it defaults to max-execution-time.
I was able to capture one of the error messages displayed, in case it means anything to you guys:
I am thinking that the POST never actually happens in my environment, for some strange reason !
Created by the ImagePicker block automatically.
I tried uploading one of the non-xfering images as Media and use a manual transfer from the program directory, where the file name is only the lastpart.jgp.
Same thing happens. Small ones don't go, big ones do !
Tried uploading small >1200 bytes and larger files to your server (grabbed from your error screenshot)
small ones fail, with no response from server and the AI2 screen error. Larger files are correctly stored and responded to. (Sorry, you will have a file called housesquare.jpg you will need to remove!)
So it is not in AI2 but in your server where the problem lies...
I also see that the folder you are trying to upload to is inside your website, which is running on Wordpress. Could it be that the Wordpress php configuration and media settings files are interfering ?