2

I work remotely on camera systems and sometimes I have to backup some footage to cloud storage. Up to this point I've been signing into my Google Drive and uploading the files there for me to download at the home location.

However, the uploads usually take a while and I'd rather not leave the remote computer logged in and unattended while they are uploading. Is there any way I can upload to my drive without signing in (perhaps doing a one-time code or something of the sort)?

  • 1
    Why not just lock the computer? – Drew May 27 '14 at 16:35
  • The computer doesn't have a password (which is a requirement of the camera software). Regardless that would require me constantly having to unlock it to check the progress. – Moses May 27 '14 at 16:46
  • So you'd like to have the remote computer not logged and still be uploading photos to gdrive? – Drew May 27 '14 at 17:46
2
+50

This might work.

Allow Others to Upload Files to Your Google Drive with This Script

The script itself is here:

function doGet(e) {
  return HtmlService.createHtmlOutputFromFile('form.html');
}

function uploadFiles(form) {

  try {

    var dropbox = "Student Files";
    var folder, folders = DriveApp.getFoldersByName(dropbox);

    if (folders.hasNext()) {
      folder = folders.next();
    } else {
      folder = DriveApp.createFolder(dropbox);
    }

    var blob = form.myFile;    
    var file = folder.createFile(blob);    
    file.setDescription("Uploaded by " + form.myName);

    return "File uploaded successfully " + file.getUrl();

  } catch (error) {

    return error.toString();
  }

}

Once added to drive people can submit using a form:

<form id="myForm">

    <label>Your Name</label>
    <input type="text" name="myName">

    <label>Pick a file</label>
    <input type="file" name="myFile">

    <input type="submit" value="Upload File" 
               onclick="google.script.run
                        .uploadFiles(this.parentNode);
                        return false;">
</form>
2

Use goFileDrop to send files to your google drive. image

0

I don't know if Anonymous upload is possible. May be third party plugin allow it. But it's risky. The best option is to create a secondary/temporary Google account. Create a folder on it and transfer ownership to the primary account. Upload files to that folder. When you transfer ownership of a folder from yourself to another person, the new owner of the folder becomes an editor of the files in that folder. The original owners of the files remain the owners. From time to time you can move the files from the shared folder from the primary account. The secondary account has only limited privilege on the folder.

protected by Community Jan 23 '17 at 16:16

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.