HTML form file upload to Google Drive and save URL to google sheet

旧巷老猫 提交于 2019-12-04 21:13:29
Luis Castro

i had the same problem, and with this link solved my issue :

this a update from google script example for upload file with google sheets and Macros.

  1. In the line in the HTML defining the submit button, change id="uploadFile" to id="uploadFileButton" (there was possibly a collision between the id of the submit button and the function uploadFile())

  2. and also change the onclick trigger by adding an extra return false: onclick="this.value='Uploading..';uploadFile();return false;"

  3. Correspondingly, in the code defining the uploadFile() function, change

    document.getElementById('uploadFile').value = "Uploading File..";
    

    to

    document.getElementById('uploadFileButton').value = "Uploading File..";
    

a complete thread link: https://code.google.com/p/google-apps-script-issues/issues/detail?id=6177

Regards From Venezuela

NOTE: Sorry for my bad English

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!