Code running perfectly on desktop but doesn't work on mobile version!

I have an upload button in my dynamic page that is connected to a simple database which let customers upload their custom photos to the product.
Here is my very simple code:
export function button1_click(event) {

const productId = $w( ‘#dynamicDataset’ ).getCurrentItem()._id;
const name= $w( ‘#dynamicDataset’ ).getCurrentItem().name;
const quantity = $w( ‘#input1’ ).value;
$w( ‘#shoppingCartIcon1’ ).addToCart(productId, quantity);
$w( ‘#dataset1’ ).setFieldValue( “title” ,name);
$w( ‘#dataset1’ ).save();

}
What it does is simply when the Add to card(The red button) is clicked the item is added to the card and customer’s name and photo which are directly connected to the database, along with the name of the product are submitted to the database


The problem is that the code is working just fine when it comes to the web version and the record is submitted. But, when I try the exact same thing on my mobile it doesn’t work and I can see that the photo is uploaded but not submitted. Although, the product is added to the card just like it supposed to, but when it comes to the photo and the new of the customer, I do not get anything in my database.

Submit this to the thread on Corvid performance improvements

“Rolling out improvements to Corvid sites rendering” is the place you ned to submit this

I will, thanks a lot!