How To Receive Files Directly To your Google Drive

Here in this method we will be making up a regular Web form script that will be written in HTML and CSS. We will be then uploading this to the Google Drive through using Google Scripts. This will be hence help in setting your Google Drive as such so that others can also upload the content to your Google Drive cloud storage.

Steps To Receive Files Directly To Your Google Drive:

  1. First of all you will have to create up the script that you will be then uploading to your Google Drive. The Sample form of that script is given below but you can modify it by your own needs so as to add some other functions or settings. Open Notepad copy and paste the below code and then save the file as form.html and then upload it in your google drive. Script:
  2. With this form there will be a new Folder created in the Google Drive where the uploaded files will be saved. This will be a public folder where anyone can upload up the content to your account. <input type=”file”name=”myfile”> <input type=”submit” value=”Upload File” oneclick=”google.script.run.uploadFiles(this.parentNode);return false;”>
  3. This form has three fields where you can have text field, file input field and the submit button. You can also modify the script to add up more fields of your wish.
  4. Now to authorize the script you will have to open up the doGet that you can either start through Run menu. After that you have to choose Deploy as the Web App from the publish menu that will appear. Click on the Save New version option from there and then select up the “Choose anyone, even anonymous” option after that.
  5. You will now get a form URL from where anyone can access up your Google Drive so as to upload the content. That’s all what you will have to do and one thing that you can do is now modify the script according to your way out and then publish it using the Google Scripts from where you will get up the URL by the same method that everyone can use to upload the content to your Google Drive cloud storage. Note: This can be a vulnerable path for the hackers to access your account files, so better is to share the URL only with the trusted users. So, now you have learnt about the method by which you can also allow others to access your Google Drive so as to only upload the content files. This method is really safe and you won’t have to worry about data loss or hacking of your content by anyone. Just read up the article once again if you has not known about the method and then apply it with your Google Drive account.
How To Receive Files Directly To your Google Drive - 27