24
Views
5
Comments
Facing issue with the local sync while uploading files in different mobile devices

Hi,
I am facing issue while uploading local files in the mobile device, the files are getting created in the local storage in the upload on change action, but when I change the tab the local files are being cleared or deleted don't know why 


But when I am doing the same scenario in preview in devices in PC it is working fine the files are being created and getting updated into server.

Please help with any possible solution for the issue

Thanks in advance

Meghana

2021-04-09 11-42-43
assif_tiger
 
MVP

Dear @Nokku Meghana
 While you change the view; may be your upload widget or the widget referencing the uploaded file loose the reference.
May be you need to enhance that section to consider the reference from local storage or maintain it while moving between views/screen.
Better attach a sample POC to reproduce & understand.

Thanks

2023-06-07 11-14-56
Nokku Meghana

Hi @assif_tiger,
Thank you for the quick reply, As it is confidential I cannot post any Attachments.
But I can explain it, So there will be 3 tabs in the screen and each tab has a block with "Local id" as input which is same for every block.
The data in other two blocks is retained which is ok, But In the 3rd Upload documents block when I upload a file I am facing issues in 3 Scenarios

1. There is already one file which came from server but I upload a new one in local the old one is getting cleared ,this scenario not occurs every time.

2. So when there are multiple files already in local when I upload a new one, then everything is getting cleared. this also not occurs every time.

3. All the files are visible but when I change tab and come to this tab again, the files are cleared.


But when I do this in preview devices everything works fine.

When we debug, the Local Id is passing to the blocks.

Thanks

2021-04-09 11-42-43
assif_tiger
 
MVP

1- May be your file gets override while upload!
    Please share the screenshor ref of upload action & also the entity structure
2- How do you know it is cleared? Did you confirm it with a log or something on local device?
3- Additionaly share how you populate the data... may be the files are there but something wrong while you populate them.


2023-06-07 11-14-56
Nokku Meghana

1. As they are files I am passing the id as nullIdentifier() so every time a new file will be created, I think there will be no chance of getting override in local.


2. I have put a dummy list for that aggregate without any filter on screen, So every file which is created in that device need to populate in the list.


3. So there is an aggregate in the block which is source to the files list, In the upload on change action after creation of file this aggregate will be refreshed. (I have checked filters also)

2025-01-15 08-35-04
Vignesh Sekar

Dear,

Kindly create a test app, replicate the same scenario, and share the OML file. 

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