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
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
Benjith Sam wrote:
Hi Benjith,
Thanks for the quick response, ive been trying the JS but seems not working on me but ive tried the sample app you provided and it works. My next question is what ID should i pass on? is it the upload widget id?
see image below:
Ali Asghar Akmad wrote:
You have to pass the Upload Widget Id to the JS node as an input parameter, Please refer the below screen shot.
Let me know if you need any more help.
This works, thank you Benjith. i will mark this as a solution.
You are welcome Ali :)
Glad I could be of help!
PFA - includes the solution .oml file