Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

你好,可以整上传api嘛 #11

Open
valetzx opened this issue Mar 8, 2022 · 7 comments
Open

你好,可以整上传api嘛 #11

valetzx opened this issue Mar 8, 2022 · 7 comments

Comments

@valetzx
Copy link

valetzx commented Mar 8, 2022

这个可能有点曲线救国,想用 picgo 上传图片到onedrive,方便typora写md。(脸皮厚一点:要是能写picgo插件就更好了xd)

@valetzx
Copy link
Author

valetzx commented Mar 8, 2022

并且在fork后的登录页报错:https://pigeonpig.github.io/onedrive-image-hosting

AADSTS90102: 'redirect_uri' value must be a valid absolute URI.

@harrisoff
Copy link
Owner

fork 完了还得把配置改成你自己的,就是文档里最后那段
picgo 的问题:harrisoff/onedrive-js-sdk#1

@valetzx
Copy link
Author

valetzx commented Mar 9, 2022

那请问参考文件是?文档中需要填什么?

@harrisoff
Copy link
Owner

@valetzx
Copy link
Author

valetzx commented Mar 11, 2022

完成了,现在问题有1好像不能大文件2似乎不能直链,复制的直链为https://api.onedrive.com/v1.0/shares/undefined/root/content
image

@harrisoff
Copy link
Owner

  1. 文件大小有限制
  2. 如果上传+分享成功,url 里的 undefined 应该是一个 shareId 字符串,可以看一下请求里面哪一步失败了

@valetzx
Copy link
Author

valetzx commented Mar 12, 2022

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants