Hi All!

I know LiveCode can send html post commands. Is is possible to send a post 
command that activates a Google Script?

There is a Google Script that allows you to create a basic web form to upload 
files to a specific Google Drive folder. It is available here: 
http://www.labnol.org/internet/receive-files-in-google-drive/19697/ 
<http://www.labnol.org/internet/receive-files-in-google-drive/19697/> ...if 
you’re curious.

The Google Script resides in your Google Drive and the accompanying html form 
uses the following code:

<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>


Would it be possible to utilize this process in a LiveCode project so that a 
resulting file, say for example, an audio recording, could be uploaded 
automatically to a specific Google Drive Folder? 

Any advice?

Thank you!
John Patten
SUSD
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to