Google Drive Extension
An extension to download, upload, edit, modify and delete files from your google drive.
Support all Android version. (Tested with Android 10, 11, 12, 13)
Extension Properties
You need to set folder id from Block Section or from Designer Section.
⚠️ Requirements
Share your folder access with anyone on internet. If you want to upload or write files from extension then you need to give editor access. Otherwise you can give viewer access.Upload File
Using this block you can upload any file from storage.
fileType
- Set specific file type to pick file from storage.
fileId
- It's return the id of uploaded file.
file Name
- It's return the name of uploaded file.
fileUrl
- It's return the url of uploaded file.
file Size
- It's return the size of uploaded file.
Upload Multiple Files
Using this block you can upload multiple files in single request.
fileType
- Set specific file type to pick file from storage.
fileIds
- It's return the ids of uploaded files as list.
fileNames
- It's return the names of uploaded files as list.
file Sizes
- It's return the sizes of uploaded files as list.
fileUrls
- It's return the urls of uploaded files as list.
File Picker Canceled
It's triggered when user click on back press to cancel picking file.
function Name
- It's return the name of function.
Capture Photo To Upload
Using this blocks you can take photo using phone camera to upload it into Drive folder. Also you can compress photo before uploading.
quality
- Enter quality amount as integer from 0 to 100.
fileId
- It’s return the id of uploaded file.
file Name
- It’s return the name of uploaded file.
fileUrl
- It’s return the url of uploaded file.
file Size
- It’s return the size of uploaded file.
Photo Capture Canceled
It’s rises when user cancel photo capturing or click on back press.
function Name
- It’s return the name of function.
Record Video To Upload
Using this blocks you can record video using phone camera to upload it into Drive folder.
quality
- Enter quality amount as integer from 0 or 1.
maxDuration
- Enter max duration seconds as integer number
fileId
- It’s return the id of uploaded file.
file Name
- It’s return the name of uploaded file.
fileUrl
- It’s return the url of uploaded file.
file Size
- It’s return the size of uploaded file.
Video Record Canceled
It’s rises when user cancel recording video or click on back press.
Upload From Asset
Using this blocks you can upload any file from your asset folder.
file Name
- Enter file name from asset folder.
fileId
- It’s return the id of uploaded file.
file Name
- It’s return the name of uploaded file.
fileUrl
- It’s return the url of uploaded file.
file Size
- It’s return the size of uploaded file.
Upload File By Url
Using this block you can upload file from internet by using file url.
fileUrl
- Enter file url to upload it into drive folder.
fileId
- It's return the id of uploaded file.
file Name
- It's return the name of uploaded file.
fileUrl
- It's return the url of uploaded file.
file Size
- It's return the size of uploaded file.
Upload Multiple Files By Url
Using this block you can upload multiple files from internet in single request.
fileUrls
- Enter file urls as list.
fileIds
- It's return the ids of uploaded files as list.
fileNames
- It's return the names of uploaded files as list.
file Sizes
- It's return the sizes of uploaded files as list.
fileUrls
- It's return the urls of uploaded files as list.
Update File
Using this block you can modify a file which already uploaded into your drive.
fileId
- Enter that file id which file you want to update.
fileType
- Set specific file type to pick file from storage.
fileId
- It's return the updated file id.
Get Files
Using this block you can get all files from your folder.
fileNames
- It's return the names of files as list.
fileSizes
- It's return the sizes of files in byte formats as list.
fileUrls
- It's return the download links of files as list.
lastUpdateDates
- It's return the last update dates of files as list.
fileIds
- It's return the ids of files as list.
Delete File
You can delete your uploaded file using file Id.
fileId
- Enter file id.
fileId
- It's return the id of deleted file.
isDeleted
- It's return bolean result of deletion action.
Rename File
You can rename your file using file Id.
fileId
- Enter file id.
new Name
- Enter new name.
fileId
- It's return the file id.
file Name
- It's return the file name.
GetDirectDownloadLink
Using this you can get direct download link of any file using file Id.
fileId
- Enter file id.
Create Folder
Using this block you can create new folder in any root folder using root folder id.
rootFolderId
- Enter root folder id.
newFolderName
- Enter new folder name.
newFolderId
- It's return the id of created folder.
newFolderName
- It's return the created folder name.
rootFolderId
- It's return the root folder id to handle user's activity.
Delete Folder
Using this block you can delete any folder using it's id.
folderId
- Enter folder id.
folderId
- It's return the id of deleted folder.
isDeleted
- It's return boolean.
Get Folders
Using this block you can get folders from your drive root folder.
rootFolderId
- Enter root folder id.
rootFolderId
> - It's return the id of root folder.
folderIds
- It's return the list of folders ids.
folderNames
- It's return the list of folders names.
folderSizes
- It's return the list of folders sizes.
Rename Folder
Using this block you can rename your folder name.
folderId
- Enter folder id.
new Name
- Enter new name.
folderId
- It's return the id of folder.
folderName
- It's return the new name of folder.
Move File
Using this block you can move file from one folder to another folder.
folderId
- Enter folder id where you want to move your file.
fileId
- Enter file id.
folderId
- It's return the id of folder.
fileId
- It's return the id of file.
Move Folder
Using this block you can move your folder to another folder.
rootFolderId
- Enter root folder id.
childFolderId
- Enter child folder id.
rootFolderId
- It's return the id of root folder.
childFolderId
- It's return the id of child folder.
Encode & Decode
Using this block you can protect your folder ids. Set level (1-100) and password length must be 5 or more.
Failed
It rises if got any error. Check function name to understand that error is from where and read error message to understand the reason.
function Name
- It's return the function name which function got the error.
error Message
- It's return the error message.
GitHub Repository
Release Notes ↷
Added UploadFileByUrl function. Now you can upload file into drive from internet.
Added UploadMultipleFilesByUrl function. Now you can upload multiple files from internet in a single request.
Added UpdateFile function. Now you can update that file which already exist into your drive.
Extension specifications:
Version: 8.1.0
Size: 98.9 KB
GitHub Repository: GoogleDrive
Last amendment: 16 March 2023