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管理员身份上传 #57

Open
xiaoli123 opened this issue Jul 6, 2019 · 4 comments
Open

api管理员身份上传 #57

xiaoli123 opened this issue Jul 6, 2019 · 4 comments

Comments

@xiaoli123
Copy link

希望增加api参数可以输入管理员账号,无限制上传

@helloxz
Copy link
Owner

helloxz commented Jul 6, 2019

好的,这个可以考虑。

@ladychili
Copy link

ladychili commented Jul 12, 2019

😂新手借个issue问一下,现在的API请求参数是只有一个file吗?
总是返回 {"code":0,"msg":"You did not select a file to upload."} 是哪里出错了呀?

import requests

url = 'https://imgurl.org/api/upload/url'
img_path = '/Users/cathy/Desktop/que-14136851099.jpeg'
image = open(img_path, 'rb')    #是这一行不对吗
data = {'file': image}         #还是这一行?
response = requests.post(url = url, data = data)
print(response.text)

@Yrobot
Copy link

Yrobot commented Aug 6, 2021

同求,API好像只支持游客上传

@eryajf
Copy link

eryajf commented Sep 16, 2021

同希望支持,这对从其他平台迁移到imgurl的自动化工作非常重要,否则只能一个一个操作,实在太难受。如果能支持通过接口基于图片URL上传就完美了!

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

No branches or pull requests

5 participants