hfcorriez / php-qiniu

七牛非官方PHP SDK
79 stars 12 forks source link

HTML表单上传要怎么写? #2

Closed phoenixg closed 9 years ago

hfcorriez commented 9 years ago

后端实现可以参考:http://www.w3schools.com/php/php_file_upload.asp

phoenixg commented 9 years ago

@hfcorriez http://developer.qiniu.com/docs/v6/api/overview/up/form-upload.html

  <form method="post" action="http://upload.qiniu.com/"
     enctype="multipart/form-data">
  <input name="key" type="hidden" value="<resource_key>">
  <input name="x:<custom_name>" type="hidden" value="<custom_value>">
  <input name="token" type="hidden" value="<upload_token>">
  <input name="file" type="file" />
  <input name="crc32" type="hidden" />
  <input name="accept" type="hidden" />
    </form>

这些如何填?

hfcorriez commented 9 years ago

这个是直接上传到七牛的做法。

发自我的 iPhone

在 2014年11月10日,11:52,黄峰 notifications@github.com 写道:

@hfcorriez http://developer.qiniu.com/docs/v6/api/overview/up/form-upload.html

<form method="post" action="http://upload.qiniu.com/" enctype="multipart/form-data">

这些如何填?

— Reply to this email directly or view it on GitHub.