开发者

open a folder from my site in order to upload a file

I need to allow the user to upload a file from his computer to my site, how do i do that?

(a browse button)

Any ideas?

I am looking for a way of doing 开发者_如何转开发this with out the <input type="folder'> i dont want to have a button and text box i only need a button that will say browse and will open the folder

Thank you very much.


You use:

<form action="yourscript.php" method="post" enctype="multipart/form-data">
<input type="file" name="thefile" />  <---your "browse" button
<input type="submit">
</form>

As for the server-side handling script, this site is littered with TONS of examples on how to handle uploads, so I won't bother posting links.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜