Git Product home page Git Product logo

drive-utils's People

Contributors

googleworkspace-bot avatar grant avatar jeffposnick avatar mikeprocopio avatar renovate[bot] avatar sauvainr avatar sqrrrl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

drive-utils's Issues

No response by MediaUploader.upload() function

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.

[SyncRepoSettings bot] - Invalid config file

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

Please Provide Abort Option also

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.?

Replace a file's contents

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.

forked as "UploaderForGoogleDrive.js" for v3 and autoextracting access_token from gapi

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:

  1. use Google Drive API V3 instead of V2

  2. wrap code in a "use strict" IIFE, only exposing MediaUploader

  3. 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.

  1. if options.token undefined, get access token from existing window.gapi instance that would typically be loaded to access Google APIs from browser Javascript. If neither an explicit token is passed nor a gapi token can be found, it throws an appropriate error.

add promise wrapper

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.