aweitian / upload
上传组件
Installs: 32
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/aweitian/upload
Requires
- php: >=5.3.0
- aliyuncs/oss-sdk-php: ~2.0
- aweitian/filesystem: ~2.0
README
curl -F img=@/c/0037.png -F xxx=@/c/frl.gif http://127.0.0.1:1259/tests/upload.php
curl -F xxx=@/c/q.png http://127.0.0.1:1259/tests/single.php
upload test result:
array(3) { ["code"]=> int(200) ["message"]=> string(2) "OK" ["data"]=> array(2) { ["succ"]=> array(2) { ["img"]=> string(33) "/uploads/user/201912291047594.png" ["xxx"]=> string(33) "/uploads/user/201912291047595.gif" } ["fail"]=> array(0) { } } }
single test result:
bool(true) string(55) "E:\github\upload\tests/uploads\user\201912291052388.png" int(5738) string(33) "/uploads/user/201912291052388.png"
not allow test result:
bool(false) string(38) "regedit.exe文件类型不允许上传"