Upload Image to Google Drive And Google Sheet From HTML File Input Element | JavaScript | AppScript

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ธ.ค. 2024

ความคิดเห็น • 22

  • @adityasrivastava6701
    @adityasrivastava6701 ปีที่แล้ว +1

    how to store pdf in case of image?

  • @the_code_machine
    @the_code_machine ปีที่แล้ว +1

    In mine first error appear cors policy origin so I add header and mode to no-cors after this error now error comes 403 forbidden , what I do now,?

    • @KtXiom
      @KtXiom ปีที่แล้ว

      I have the same error :(

  • @septimusforster
    @septimusforster ปีที่แล้ว

    Spectacular, that's the word for it. This is simply SPECTACULAR.

  • @chiranthans.p-im8nt
    @chiranthans.p-im8nt ปีที่แล้ว

    u are the best. Thank you very much

  • @hrtreandingstatus
    @hrtreandingstatus 8 หลายเดือนก่อน

    this is fantastic sir
    make a video how use this image for different projects

  • @ignaciooquezada911
    @ignaciooquezada911 ปีที่แล้ว

    my image doesnt appear in google sheets but it tells me that the process was done correctly, I don't know what it could be

    • @CodeWithSundeep
      @CodeWithSundeep  ปีที่แล้ว

      Deploy your appscript clicking on "new deploy"

  • @1vid693
    @1vid693 7 หลายเดือนก่อน

    How to prevent auto uploading, how to fill in the upload progress bar? Please give me a tutorial.

  • @jayasri-ft8040
    @jayasri-ft8040 2 ปีที่แล้ว

    Great work you have done. Thankyou

  • @gunawanjoovis4498
    @gunawanjoovis4498 2 ปีที่แล้ว

    Great, this help me so much, thank you broo

  • @LizaSem-w7i
    @LizaSem-w7i ปีที่แล้ว

    Hello! Thanks for the guide, this worked for me. I was hoping to see how you can post the image to sheets on form submit button. It uploads every photo that you choose to the drive, but I would like it so that it uploads when the form submits. Also how can you have the image be loaded into a certain column and have it be in the same row as other form inputs of the same form? Thanks!

    • @CodeWithSundeep
      @CodeWithSundeep  ปีที่แล้ว

      Instead of using a change listener, you can execute the code inside the form submit event listener, like this:
      form.addEventListener('submit', e => {
      e.preventDefault();
      // Image submission code here
      });
      To load the image into a different column, you can define a variable to select the specific column or row range, and then use the `range.setValue(imageLink)` method to set the image link in that cell:
      const imageUrl = "example.com/image.jpg"; // Replace this with the actual image URL
      const sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
      const imageCell = sheet.getRange("A1"); // Replace "A1" with the desired cell reference
      imageCell.setValue(imageUrl);
      This code will set the image URL (stored in the `imageUrl` variable) into the cell defined by `imageCell`, which you can adjust as per your specific requirements.

  • @hijmtlc3191
    @hijmtlc3191 ปีที่แล้ว

    Good job, it s same way for document pdf word?

  • @matheusasilva1170
    @matheusasilva1170 2 ปีที่แล้ว

    Very good...
    But what can you do with it after saving?
    Can I get some link from it and use it in an html page for example?

    • @CodeWithSundeep
      @CodeWithSundeep  2 ปีที่แล้ว

      Yes the download link you can use in html page

  • @DeptoRoy-y5b
    @DeptoRoy-y5b 26 วันที่ผ่านมา

    Apke video ka volume low hei ise increase koreye

  • @MD_Owntrainedmusic
    @MD_Owntrainedmusic ปีที่แล้ว

    Can I get the source code?

  • @abbi8609
    @abbi8609 2 ปีที่แล้ว

    Good content

  • @thedipayanmaji
    @thedipayanmaji ปีที่แล้ว

    please update you code link, or buy your domain again

  • @meenasharma8662
    @meenasharma8662 2 ปีที่แล้ว

    👍👍👍👍👍👍👍👍

  • @GijaxHD
    @GijaxHD ปีที่แล้ว

    why the title is english and the video is on Indian language, bro pls talk english, i cant understand what are u talking about