开发者

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

开发者 https://www.devze.com 2023-03-13 21:38 出处:网络
I need to allow the user to upload a file from his computer to my site, how do i do that? (a browse button)

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

精彩评论

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