35
Views
6
Comments
Solved
Is it posible to add option to delete cache on upload widget on mobille?
Question

Hi All,

As per my question is it posible to add an option to delete/removed cache on upload widget for mobile?and also add callback when cancel is click when selecting file for upload?

My problem is, when i run the it on android mobile device, when uploading file and selected a file from phone it will call the onchange callback. but when i select the same file on the phone the onchange callback is never called again. im thinking the image is being cache somewhere and i dont know where?.

im only experiencing this on Android. on IOS it is changing the filename everytime. the onchange callback always called.

Any help would be much appreciated.

Thank you in advance :)

Happy Coding

mvp_badge
MVP
Rank: #91
Solution

Hi Ali,


Please follow the below Steps:

1) Define a JS node within the OnChange Action of the upload Widget

2) Include the below JS Script within the node.


Check this: Sample App Screen


JavaScript Code Snippet

var parent = document.getElementById($parameters.ElementId); 
var children = parent.children[0]; 

children.value = '';


jQuery Code Snippet

$("#" + $parameters.ElementId + " > input").val('');




Hope this helps you!


Regards,

Benjith Sam

mvp_badge
MVP
Rank: #91

Hi Ali,


PFA - includes the solution .oml file


Hope this helps you!


Regards,

Benjith Sam

UploadWidgetDemoApp.oml