{"id":18654124,"url":"https://github.com/piyushxcoder/google-drive-resumableupload","last_synced_at":"2025-04-11T17:31:08.145Z","repository":{"id":55610050,"uuid":"117293582","full_name":"PiyushXCoder/google-drive-ResumableUpload","owner":"PiyushXCoder","description":"A helpful java library/class for uploading large files in chunks on google drive.","archived":false,"fork":false,"pushed_at":"2020-12-18T07:56:14.000Z","size":10,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T16:21:17.306Z","etag":null,"topics":["drive-api","google-drive","java","multipart"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PiyushXCoder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-12T22:24:15.000Z","updated_at":"2024-05-02T13:50:37.000Z","dependencies_parsed_at":"2022-08-15T04:20:37.285Z","dependency_job_id":null,"html_url":"https://github.com/PiyushXCoder/google-drive-ResumableUpload","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiyushXCoder%2Fgoogle-drive-ResumableUpload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiyushXCoder%2Fgoogle-drive-ResumableUpload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiyushXCoder%2Fgoogle-drive-ResumableUpload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiyushXCoder%2Fgoogle-drive-ResumableUpload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PiyushXCoder","download_url":"https://codeload.github.com/PiyushXCoder/google-drive-ResumableUpload/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248449695,"owners_count":21105543,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["drive-api","google-drive","java","multipart"],"created_at":"2024-11-07T07:14:05.936Z","updated_at":"2025-04-11T17:31:07.872Z","avatar_url":"https://github.com/PiyushXCoder.png","language":"Java","readme":"# google-drive-ResumableUpload\nA helpful java library/class for uploading large files in chunks on google drive.\n\n## Example usage for uploading a file\n\nHere's an example for uploading a java.io.File to google drive.\n\n```java\n// Make sure we've already got Google OAuth Credentials object `credential` and\n// java.io.File object `file` for the desired file to be uploaded.\n\n// Now create the metadata google drive file with the name, mime-type and size\nFile fmeta = new File();\nfmeta.setName(\"My Report\");\nfmeta.setMimeType(\"application/vnd.google-apps.spreadsheet\");\nfmeta.setSize(file.length()); // `file` is the object for the desired java.io.File\n\n// Now, use uploadFile() method to start uploading the file in multi-part requests.\nResumableUpload.uploadFile(credential, fmeta, file);\n```\n## How this works\n\n - At, first we use the `requestUploadUrl()` to create a new request to the google drive api for\nour requirement of uploading a file. This method returns the url retured by the google api, which we'll be\nusing to upload the file data.\n - Then we can use `uploadFilePacket()` to upload a part of a file or `uploadStringPacket()` to upload\n a part of any string as a file data. This step can repeated for each part of part of the file.\n \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiyushxcoder%2Fgoogle-drive-resumableupload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiyushxcoder%2Fgoogle-drive-resumableupload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiyushxcoder%2Fgoogle-drive-resumableupload/lists"}