开发者

Uploading a file [duplicate]

This question already has answers here: Closed 12 years ago. 开发者_Go百科

Possible Duplicate:

How to implement file upload progress bar on web?

Hello

I have seen many webpages where the user is able to upload a file and he is given some sort of progress as visual feedback (horizontal bar, percentage etc).

My html form is

<form method="post" action="upload.php" enctype="multipart/form-data">
<p>Select file to upload: <input type="file" name="selected_file"></p>
<p><input type="submit" value="Upload the file"></p>
</form>

How can I provide the user with a feed during the upload?

Thanks


there are many javascript and flash scripts out there which provide such a option.

my favorite one is Plupload. it supports html5 as well as flash and many others to choose from

see the examples and documentation for more information


Use JavaSqript. For e.g. i suggest to see http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop/


Have a look at very good:

UBER-UPLOADER 6.8.2


for your purpose you can use uploadify. its a jquery upload plugin. the link to uploadify is http://www.uploadify.com/. the link to its demo page is http://www.uploadify.com/demo/.

its easy to use. and it have good documentation too. try this

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜