aweitian/upload

2.0.4 2020-05-02 03:53 UTC

This package is auto-updated.

Last update: 2024-04-29 03:38:40 UTC


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文件类型不允许上传"