Advertisement
Guest User

form html upload google drive

a guest
Sep 19th, 2021
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.86 KB | None | 0 0
  1. <center>
  2. <a href='https://www.hungvb.com'><img src='https://1.bp.blogspot.com/-edphTfsQi20/YSi3QbYdBBI/AAAAAAAAAAk/woJ02l_adqkKakfvMAF6qVeVYEweDDPVwCLcBGAsYHQ/s539/logo-removebg-preview.png'/></a>
  3. </center>
  4. <form id="myForm">
  5.     <input type="text" name="myName" placeholder="Your name..">
  6.     <input type="file" name="myFile">
  7.     <input type="submit" value="Upload File"
  8.           onclick="this.value='Uploading..';
  9.                    google.script.run.withSuccessHandler(fileUploaded)
  10.                    .uploadFiles(this.parentNode);
  11.                    return false;">
  12. </form>
  13. <div id="output"></div>
  14. <script>
  15.     function fileUploaded(status) {
  16.         document.getElementById('myForm').style.display = 'none';
  17.         document.getElementById('output').innerHTML = status;
  18.     }
  19. </script>
  20. <style>
  21.  input { display:block; margin: 20px; }
  22. </style>
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement