onedrive / onedrive-texteditor-js Goto Github PK
View Code? Open in Web Editor NEWSimple single-page JavaScript app for editing text files
License: Other
Simple single-page JavaScript app for editing text files
License: Other
I am trying to integrate the file picker in cordova app. I am able to open filepicker but when I tried to open the selected file I got following error. Please see screenshot below:
My code for filepicker is:
var odOptions = {
clientId: "",
action: "share | download | query",
multiSelect: false,
openInNewWindow: true,
advanced: {
redirectUri: ""
},
success: function (files) { /* success handler / },
cancel: function () { / cancel handler / },
error: function (e) { / error handler */ }
};
OneDrive.open(odOptions);
I have also followed all things which mentioned on https://dev.onedrive.com/sdk/js-v7/js-picker-open.htm
Please help in this. I am waiting for your valuable reply.
Thanks in advance.
Hi, i have got this working.
So far so good
login workes fine but i see only folders and no content link index.html or other files.
Do i need to set some more settings?
Eric
No matter what I do. I set all permissions in azure applications configuration, but I always get this error once the user is authenticated to open a file.
I also changed manifest to set oauth2AllowImplicitFlow to true.
I also set redirect url http://localhost:2009/ in azure config as is the url i get in visual studio
This example requires enabling the implicit flow for the app, which is no longer recommended for use by Microsoft. Is it possible to update the SDK to use PKCE instead?
I am trying to use your sample to add functionality to create a "view" link on the opened file. Is that supported by the v7 filepicker and the new v2.0 auth endpoint and graph api?
I'm receiving the following error after calling OneDrive.open with options.action = "share"
{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#driveItem","@odata.type":"#microsoft.graph.driveItem","id":"huwcmsBFlrTjJUVl3wDPRweHZOc"{
"error": {
"code": "InternalServerError",
"message": "Unsupported extension property type.",
"innerError": {
"request-id": "72116e0c-214d-413f-bb72-cee57ff2200f",
"date": "2016-04-05T21:23:51"
}
}
}
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.