37
Views
4
Comments
Mobile application without internet connection it doesn't send anything to the server

I have a mobile application, which takes images by phone camera when there is an internet connection it sends them directly to a SFTP server 

but when there is no connection it saves them in the local storage and once the connection is restored it sends them to the server 

the problem is when I take more than two images without internet connection it doesn't send anything to the server

2025-06-28 01-52-12
Marco Mateo

Hi @Jad  MS 

Isn't it expected to not send anything to the server since the device is not connected to the internet ? 


UserImage.jpg
Ibtissam MS

Hi @Marco Mateo 

No, when there is no Internet connection you can save the images in the local storage, once the Internet is restored the images will be sent automaticaly to the server 

The code works very well for me but that I depace 2 photos the application spits out

2025-06-28 01-52-12
Marco Mateo

Hi Jad,

Might be a syncing issue. 

Are you using any plugins ? or just the upload widget ?

If it is possible, please share a sample oml where you experience the issue. 

2016-04-22 00-29-45
Nuno Reis
 
MVP

Hello Jad.

I see two very obvious options of error.

1) An error in logic that can't handle two images.

2) Total file size is too large and the operation times out.

First you have to make a screen to check if you have two images stored locally and the size of each.

Then, you have to debug the server logic to see if you get both images and store them.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.