Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <center>
- <a href='https://www.hungvb.com'><img src='https://1.bp.blogspot.com/-edphTfsQi20/YSi3QbYdBBI/AAAAAAAAAAk/woJ02l_adqkKakfvMAF6qVeVYEweDDPVwCLcBGAsYHQ/s539/logo-removebg-preview.png'/></a>
- </center>
- <form id="myForm">
- <input type="text" name="myName" placeholder="Your name..">
- <input type="file" name="myFile">
- <input type="submit" value="Upload File"
- onclick="this.value='Uploading..';
- google.script.run.withSuccessHandler(fileUploaded)
- .uploadFiles(this.parentNode);
- return false;">
- </form>
- <div id="output"></div>
- <script>
- function fileUploaded(status) {
- document.getElementById('myForm').style.display = 'none';
- document.getElementById('output').innerHTML = status;
- }
- </script>
- <style>
- input { display:block; margin: 20px; }
- </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement