


Click the Advanced button under the General tab. When I change the "Content-Type" in the "headers" section to "application/" and remove the "body" part, it's creating a folder named "Untitled". Right-click the folder you want to encrypt and select Properties from the menu. If you or your administrator installed Google. The syntax for invoking the Drive API HTTP Request inside of a. Once you create that folder you can drag any documents you want to be public into the folder. Tip: Click the red Upload button (next to Create) if you want to upload more files and folders to My Drive. 'Authorization': 'Bearer ' + access_token,ĭocument.getElementById("info").innerHTML = "Created folder: " + file īut it's only creating a file named "Untitled", it's no folder and you can't open it. Here are the instructions to create a new public folder in Google Apps. Var body = "Content-Type: application/json" + "\r\n" + If you are so busy with your business and needs someone to make your google drive, You can hire me for a project. Var access_token = googleAuth.getAccessToken() You will get an organized folder for your google drive with preferred title on it. So Google says "Content-Type: application/json" goes into the header and "application/" should be the mimetype in the body(?), thats what I'm doing in my code, which looks like this now: function createFolder() Enter the folder and upload your images or photo there.
How to make a google drive folder public code#
With the same code I'm trying to create a folder, using this information from Google: Choose Advanced in the lower right corner and click it In the appeared window, press Change and choose On public on the web, then press Save and Done.

It’s mandatory to have an account and a project on Google Cloud Platform. Right now I'm using this code to upload files to Google Drive: First, we need to create some new credentials.
