googleworkspace / drive-utils Goto Github PK
View Code? Open in Web Editor NEWGoogle Drive API utility functions.
License: Apache License 2.0
Google Drive API utility functions.
License: Apache License 2.0
According to this thread
http://stackoverflow.com/questions/19769000/google-drive-uploading-file-size-limit
Hi,
Possible to add click to open a browse window? with Drag and drop
I 'm trying to upload a .json file on my won drive folder, but I can't receive a response of this operation?
I tried to use the onProgress callback in order to monitor what's happenning...
This is my custom upload function :
$scope.uploadReport = function(content,fileName) {
var uploader = new MediaUploader({
file: content,
contentType: 'application/json',
metadata: {
'title': fileName,
'mimeType': 'application/json'
},
token: $scope.resultOauth.access_token,
onComplete: function(result){
console.log('Upload Success :' + result);
console.log("Uploader : " + JSON.stringify(uploader));
},
onError: function(error){console.log('Upload Error :' + error);},
onProgress : function(e) {console.log('Progress :' + e)}
});
uploader.upload();
}
Can you help me?
Thanks in advance.
Error: redirect_uri_mismatch
The JavaScript origin in the request, http://gsuitedevs.github.io, does not match the ones authorized for the OAuth client
Failed to validate the config schema at '.github/sync-repo-settings.yaml': [
{
"instancePath": "/permissionRules/1/permission",
"schemaPath": "#/properties/permissionRules/items/properties/permission/enum",
"keyword": "enum",
"params": {
"allowedValues": [
"pull",
"push",
"admin"
]
},
"message": "must be equal to one of the allowed values"
}
]
Schema can be found at https://github.com/googleapis/repo-automation-bots/blob/main/packages/sync-repo-settings/src/schema.json
I use this code to be file uploader in my website, and the uploaded file will appear on my website page. But only the owner of the file can see it. Can you help me to make the file uploaded be shareable automatically?
hi i was using this application and have been trying to implement abort option but unfortunately could not get it work. can you please add abort option also.??? so that suppose while file is uploading user can click abort an the upload process is cancelled.?
I provide fileId to MediaUploader's constructor in order to replace an existing file's contents instead of creating a new file. I receive a 404 (Not Found) error.
Thanks for writing upload.js
I've forked it to this gist with some changes that might be useful if someone is interested in taking a look
at cherry picking what should go back in the main branch.
Changes:
use Google Drive API V3 instead of V2
wrap code in a "use strict" IIFE, only exposing MediaUploader
explicitly export MediaUploader as window.UploaderForGoogleDrive
A name change to UploaderForGoogleDrive
requires changing your README docs, but avoids
confusion as follows:
Google's public guide to Drive API mentions a "simple upload" that is set with a "media" tag and called media upload by some people. Alternatively there is also a "resumable upload" a different procedures, with different calls. The name change makes it less confusing that this code implements "resumable upload".
Similarly the "ForGoogleDrive" in the name is to play nice with devs who are trying to make their app compatible with multiple services.
add promise wrapper
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.