universal-data-tool icon indicating copy to clipboard operation
universal-data-tool copied to clipboard

Failed to upload files from google drive

Open Wafaa-arbash opened this issue 4 years ago • 1 comments

The bug: Failed to upload samples from google drive.

Steps to Reproduce? Once I select the sample that I need to upload to udt, It shows blank. Screen Shot 2021-01-21 at 5 15 58 PM

Wafaa-arbash avatar Jan 21 '21 22:01 Wafaa-arbash

 const onAddSamplesClicked = () => {
    const samples = []
    
    for (const item of userSelectedItemsFromDrive) {
      samples.push({ imageUrl: `https://drive.google.com/uc?id=${item.id}` })

      // if (item.mimeType.includes("image/")) {
      //   samples.push({ imageUrl: `https://drive.google.com/uc?id=${item.id}` })
      // } else if (item.mimeType.includes("video/")) {
      //   samples.push({ videoUrl: `https://drive.google.com/uc?id=${item.id}` })
      // }
    }

    onAddSamples(samples)
  }

Just comment this part in src/components/ImportFromGoogleDriveDialog/index.js and add this line to the function

MohammedRashad avatar Mar 25 '21 00:03 MohammedRashad