Uploading photo from mobile phone

I would like upload photo to the wix database with taking photo with my mobile phone camera.
I use below code. That is ok for web site but not working at mobile phone.

import wixData from ‘wix-data’;

export function button1_click(event) {
if ($w(“#uploadButton1”).value.length > 0) {
$w(“#text1”).text = Uploading ${$w("#uploadButton1").value[0].name};
$w(“#uploadButton1”).startUpload()
.then( (uploadedFile) => {
$w(“#text1”).text = “Upload successful”;
$w(“#image1”).src = uploadedFile.url;
var uploadfileurl = uploadedFile.url;
let toSave = {
“image”:uploadedFile.url,

      }; 
      wixData.save("DENE", toSave) 
        .then( (results) => { 

let item = results; //see item below
} )
. catch ( (err) => {
let errorMsg = err;
} );
})

  . **catch** ( (uploadError) => { 
    $w("#text1").text = "File upload error"; 
    console.log(`Error: ${uploadError.errorCode}`); 
    console.log(uploadError.errorDescription); 
  }); 

}
else {
$w(“#text1”).text = “Please choose a file to upload.”;
}
}
// …

Any suggestion pls?
Thanks,