2017 © Pedro Peláez
 

library upload

上传组件

image

aweitian/upload

上传组件

  • Tuesday, April 3, 2018
  • by awei.tian
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

curl -F img=@/c/0037.png -F xxx=@/c/frl.gif http://127.0.0.1:1259/tests/upload.php, (*1)

curl -F xxx=@/c/q.png http://127.0.0.1:1259/tests/single.php, (*2)

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

The Versions

03/04 2018

dev-master

9999999-dev https://github.com/aweitian/upload

上传组件

  Sources   Download

MIT

The Requires

 

by awei.tian@qq.com

upload aweitian tiananwei

03/04 2018

v1.0.1

1.0.1.0 https://github.com/aweitian/upload

上传组件

  Sources   Download

MIT

The Requires

 

by awei.tian@qq.com

upload aweitian tiananwei