If you work in IT, learn how BetterCloud’s Unified SaaS Management platform can help you manage G Suite and other applications. Also, learn how you can 10x your G Suite productivity

Have you ever been in the situation when you needed someone to share a digital file with you but the file is too large to send as an email attachment? Sharing that file with you in Google Drive is a great alternative, but what happens if the person does not have a Gmail or GAFE account?

Well, it turns out there is a script that automatically provides you with a URL that allows any user to upload a file to a designated folder in your Google Drive. The beauty of this script is that anyone can send the file to your Google Drive without signing in to a Google account! Here is how to set it up (no scripting ability required).

Link to the script

Click here to watch this video on YouTube.


UP NEXT: Admins: How to Change Your Organization's Office 365 Theme

67 thoughts on “Allow Anyone to Upload Files Directly to Your Drive

  1. Jason Smith Reply

    I use Google drive lots at work (our entire school district uses Google apps). When I upload a document to Drive there are times when I would leave it in it’s original format (Word, PDF, etc.) and other times when I would like to convert it to Google (Docs, Sheets, etc.). Is there a setting in Drive that will ask me if I want to convert (or leave alone) a file before I upload it?

    • Donna Stajkowski Reply

      That option use to exist, but seems to be gone with the current version. I miss it! I convert most everything, but I have others I teach who would like to be able to decide and not have to remember to change the setting.

    • Rob Petrie Reply

      There is a setting that will convert uploads to Google files. You´ll find it in Google Drive settings.
      When you have a file already on your drive there are convertion possible via ´Download as´ or ´Open as´

    • Teresa Reply

      From your Drive, there is a gear in the top, right. Click the gear and choose Settings. In the settings window, there is a box you can check to Convert uploaded files to Google Docs editor format. This option will automatically convert all uploaded files to the Google Doc format. If you want them left in their original format, you need to leave the box unchecked.

      I leave my box unchecked and upload them in their original format. When and if I need to convert them, I simply choose the option to Open with (Docs, Slides, Sheets, etc.) and it will make a Google Doc format copy of the original file.

      I do not know a way to choose your format option as you upload. That used to be a feature, but it’s been gone for a while.

    • Diane McCormack Reply

      Click on the gear icon. Checkmark the box if you wish to automatically convert to a Google file.

  2. Kevin Francke Reply

    I tried out the script for the Goggle Drive Dropbox…. but I get the following error after I click on the ‘upload file’ button:
    ‘Exception: Access denied: DriveApp.’

    I assume that our domain administrator has disabled external scripts…… is there a work around?
    Would really like to use this feature.
    Appreciate your help.

  3. Juliet Reply

    I loved this script and your video makes it incredibly easy to do. I am trying to use it for photo sharing and is there a way for someone to upload multiple files instead of just one? Thank you

    • Juliet Reply

      Or… is there a way to allow someone to upload a folder instead of just one file or multiple files? Any feedback would be helpful. Thanks.

      • Justin Reply

        Looking for the same as Juliet (Folder upload) and also how to change the logo. I edited line 11 on the form.html but it still shows the original logo after being published. Thanks

        • Susan Reply

          could you put all of the photos in a zipped file and then just upload the zip file?

        • Rob Petrie Reply

          After you´ve made changes you have to publish it again and the url to your image must be public

        • Chris Reply

          To change the logo, you have to make sure the url to the new picture you want to use is publically accessible as well. I’ve heard this method is being deprecated by Google, but for now you can get a direct embeddable link to a drive file by using the following format:
          Where is the random characters you see in the url when browsing that folder in Drive. (ie. drive.google.com/drive/folders/).

        • Dylan Press Reply

          Justin, when editing line 11 for a new image, make sure you are adding in a direct link to a publicly hosted image. I just tried it and successfully changed the image.

          Juliet + Justin, I am looking into what edits need to be made to the script to allow folder uploads and multiple file uploads. I will get back to you soon with what I find.

  4. Frank Reply

    Smart – thanks for sharing 🙂
    Could you put the link in the description ?
    “Is it an security-risk that all can upload to the folder on google drive”..?
    Can users share the content of the folder on Google drive with others..?

    • Dylan Press Reply

      Frank, great questions!
      1. I added the link to the description 🙂
      2. Google Drive scans all Drive uploads for viruses and security risks and the script does not give external users access to your Drive so this does not pose a security risk.
      3. You become the sole owner of any of the files that are uploaded so you can share them as you wish. The uploader does not have access to the folder, let alone ownership.

  5. James Dvorak Reply

    When we tried this, we ran into a 25-ish MB file size limitation. Is that a Google limitation or a limitation set by our local GAFE admin?

      • Alex Reply

        I get the error message: “Exception: File space.zip exceeds the maximum file size.” The file is 40mb

  6. Booth Reply

    It went to my personal drive- how can I stipulate a particular Google Drive?

    • Dylan Press Reply

      It will go to whichever Google Drive is associated with the profile you were logged in as when you created the script and published it.

  7. Catherine Reply

    OK, I followed these instructions, but I do not find a “Google Dropbox” folder in My Drive. Any suggestions? Could this be blocked in the Google Admin settings?

    • Dylan Press Reply

      Have you tried uploading anything via the web interface the script creates?

  8. Matt Rowell Reply

    This was looking great unitl I reached an error from Google Drive that “There are currently too many people viewing this file. Please try again later.” Is there any way for the Gooru to post the content of the script in plain text so that we can gain access to it other than waiting for the queue to open up on this particular file?

  9. LMP Reply

    Is there a way to change the image (google logo with the Native American)?

      • Nonob Reply

        Could you please give an example of how to “edit line 11.” It is blank so editing is a mystery for this non coder. thanks

  10. Keith Reply

    is there anyway to identify who uploaded a particular file in the “google_dropbox” folder?

    • Dylan Press Reply

      Yes, if you click on the file then click “i” icon in the top right corner of your Drive you should see “Uploaded by” in the Details tab.

  11. Sandy Avery Reply

    Can we embed the URL in a Google Form? We want to have a Google Form for Expenses and have people submitthe expense form and upload their receipts to Google Drive.

    • Dylan Press Reply

      I would recommend adding the url to the form description or editing the form autoresponder to include the url.

  12. Bo Price Reply

    I went through this process while logged in to my google for work app account but could not find the upload folder. I logged out and logged into my personal account and it had been created there instead of my business acccount? Any ideas how and why that would happen?

    • Dylan Press Reply

      I would double check the chrome profile you are logged in on. The only way this could happen is if it detected you were in some way linked to your personal Google Drive, likely via Chrome Profile.

  13. Kathie Maier Reply

    I got this message yesterday and it is still up today:
    “There are currently too many people viewing this file. Please try again later.”
    I have used this script before and love it. I hope it is still available.

  14. Scott L Reply

    I like this, but when I follow the instructions I get the following: “500. That’s an error. There was an error. Please try again later. That’s all we know.”

    If you know why that is happening, please let me know as I’d like to use this script. Thanks.

  15. Sam Reply

    How do I set the path on Drive?
    what is the syntax for deep folders?
    I tried ‘work_collector/subfolder’ and it just created a folder named ‘work_collector/subfolder’.

  16. Nonob Reply

    Is there a way to tell who has uploaded a file? The script asks for a name but I haven’t been able to find any way to identify who has uploaded which file. Thanks.

    • jwj Reply

      This worked for me. There are two files that you are editing that you can see over to the left of the script editor. One is server.gs and the other is form.html.

      On the server.gs file, you will find this:
      var blob = form.myFile;
      var file = folder.createFile(blob);
      file.setDescription(“Uploaded by ” + form.myName);

      Just below that, copy the following:
      file.setName(form.myName + ” – ” + file.getName());

      This will take the name from the form field and put it at the beginning of the file name, followed by a dash, and then the name of the file being uploaded. You can reverse the “form.myName” and the “file.getName()” if you want. Just make sure to end with a closed parentheses. You can also type whatever you want in the place of the dash. You probably want to make sure there is a space before and after whatever you type, though, to keep the two name separated. Or you can just put a space in there with no dash.

      After you have done that, return to the Publish menu, select Deploy as Web App. Then change the version to New, type a description of the change if you want (like, “added name to file”) and publish. Then get the new web address and test that. It should work.

  17. Abiya Reply

    Great post! I am actually getting ready to across this information, It’s very helpful for this blog.Also great with all of the valuable information you have Keep up the good work you are doing well.

  18. Greg Nichols Reply

    Thanks for the wonderful video. I’m using the same script the script you wrote to allow my students to submit video practice records of themselves playing. We are running into a 25MB file size limit and while I’m keeping the assignment short (:30 or less) some students are running into an error, file too large message. Is there any way to remedy this?

  19. Glenn Reply

    The script doesn’t appear to allow uploading from mobile phones. This would be very handy because we are wanting video. Do you know if this is able to be done?

  20. Almond Rochester Reply

    @GLENN I have been using the script for ages. Today I tried with my mobile phone too. It works like a charm.

    I want to ask though, is there a way to add validation to the fields? I tried many ways but to no avail. I guess I don’t understand the script enough.

  21. Heemanshu Shah Reply

    i want the form to create folders based on Name and put the file in a folder with name as the folder name for each file submission


  22. Nance Reply

    This app is a huge help. Thank you!

    I have one question. When a user attempts to upload a document to my Drive, they have to be given permission by me individually.

    I get an email, I click on the link there and give them permission and then they go back in and complete the upload.

    I thought I had this set up to give everyone permission to upload documents without this step. But apparently not.

    Do you know where I should check?


    • Nance Reply

      It turns out I somehow skipped the “click the Permissions” step when I first set up this app. I went back and did it right this time. All set.

      Thank you again!

  23. David Samson Reply

    This sounds perfect, but clicking the link it says “There are currently too many people viewing this file. Please try again later.” Perhaps make several copies of the file so that as it gets more popular it won’t fill up as quickly?

  24. Simone Reply

    I have it all working but I need there to be an option to upload more than one photo at a time, is this possible?

  25. Paul Reply

    I have tried 6 times to create a new dropbox. I see the project name in my drive but I do not see a folder. When I go to the site and upload a file the screen just stays on Uploading… and the status bar says “Waiting for script.google.com…”

  26. Fabrice Reply

    Hello !
    Fantastic script ! Unfortunately, for non business/Education google users, this script works but a “This application was created by another user, not by Google.” (=unverified app screen) message appears at the top of the “upload” page for external users who wish to send a file. Not really reassuring for users and not really nice anyway. Google has enforced their security policy : “to protect our users, publicly available apps that need access to certain user data must first be approved.” (link : https://support.google.com/code/contact/oauth_app_verification ) . So, the script needs to be processed through Google before being authorized. Is there any way you could submit your script to make it reviewed by Google thus ensuring we do not get this unverified app screen message ? Thanks a lot !!!

  27. Jacob Reply

    Is it possible to add a progress bar for the upload?

    I am using it to allow members of my community to share video’s they have recorded. These files are large, obviously, and it is hard to know how far the upload is up to or whether it has frozen.

  28. Linda Carey Reply

    Would love to try this! But I get a message “There are currently too many people viewing this file. Please try again later.” i’ve tried for hours lol. Is the script still valid as it was posted two years ago?

Leave a Reply

Your email address will not be published. Required fields are marked *


The Ultimate Guide to Google Drive