mirror of
https://github.com/yv1ing/ezMove.git
synced 2025-09-16 14:51:01 +08:00
new: Completed support for migrating images to Tencent Cloud COS
This commit is contained in:
13
uploader.py
Normal file
13
uploader.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from picbed.cos import cos_upload_img
|
||||
|
||||
|
||||
class Uploader:
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
def upload_web_img(self, img_url, pic_bed):
|
||||
if pic_bed == 'COS':
|
||||
return cos_upload_img(img_url)
|
||||
else:
|
||||
print('Unsupported image hosting type')
|
||||
exit(1)
|
||||
Reference in New Issue
Block a user