自定义文件上传控件以上传多个文件 [英] Custom File Upload Control to upload Multiple Files

查看:96
本文介绍了自定义文件上传控件以上传多个文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个允许用户上传图像的应用.
我正在做某些验证(检查最小否或文件,图像大小,重复的图像等.

用户必须至少上传5张图片,最多上传10张图片.
我已经使用了文件上传控件,但是用户希望选择所有文件并一次性将其上传.
我对此进行了一些调查,发现一些使用Flash的控件,但后来我无法进行验证.好像我必须编写自己的控件.
这使我想到了我的问题-任何人都可以引导我找到一些有关如何完成操作的有用链接吗?

谢谢.

HI all,

I have an app which allows the user to upload images.
I am doing certain validations( checking Minimum no or files, Image sizes, Repeated images etc.

The users have to upload a min of 5 and max of 10 images.
I have used the File Upload Control , but the users want to select all the files and upload it once off.
I have investigated a bit around this and found some controls that uses flash, but then i am unable to do my validations.Looks like i will have to write my own controls.
This brings me to my question - can anyone please guide me to some useful links as to how it can be done?

Thanks.

推荐答案

从目前为止,我喜欢这样一个:http://blueimp.github.com/jQuery-File-Upload/ [
From what I saw so far, I like this one: http://blueimp.github.com/jQuery-File-Upload/[^].

You can easily get a source code out of this page and learn how it works.

—SA


周围有一些很好的控件,我们使用一种控件,它允许我们指定所需图像的数量,其大小,并允许裁剪等等.我相信您可以找到想要的东西.但是,如果您想写点东西,这是一个Flash问题,而不是ASP.NET问题.
There are some excellent controls around, the one we use, allows us to specify the number of images we want, the sizes they should be, allows cropping, etc. Don''t reinvent the wheel, I''m sure you can find what you want. But if you want to write something, this is a Flash question, not an ASP.NET question.


这篇关于自定义文件上传控件以上传多个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆