Closed xiaokaixuan closed 4 years ago
阿里免费图床
@echo off
title Alicdn Image
echo. set filename=%~1 if not "%filename: =%" == "%filename%" ( echo ERROR: Filename can not contain space !!! & goto :eof )
if not exist %filename% ( echo ERROR: Filename is not exists !!! & goto :eof )
echo Uploading ... echo.
curl "https://kfupload.alibaba.com/mupload" ^ -F "scene=productImageRule" ^ -F "name=image.png" ^ -F "file=@%filename%;type=image/png"
}