有什么好的 ASP.NET 网站多文件上传器吗?

发布于 2024-08-03 08:21:24 字数 1539 浏览 7 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

ら栖息 2024-08-10 08:21:25

Silverlight 多文件上传器 非常适合我。它是一个开源控件,既允许单按钮控制也允许完整的图形控制。在这两种情况下,都有用于完全交互的 JavaScript 方法和事件。

虽然我还没有尝试过任何替代方案,但它似乎质量很高且经过精心打磨,并且可以使用许多有用的参数进行自定义,例如最大文件大小、文件类型过滤器和上传处理程序。另外,据说它支持拖放,但我还没有尝试过。

替代文字

Silverlight Multi File Uploader works great for me. It's an open source control that both allows a single-button control or a full graphical control. In both cases there are JavaScript methods and events for full interaction.

While I haven't tried any of the alternatives, it seems to be high quality and well polished and can be customized with a number of useful parameters such as max file size, file type filters and upload handler. Also, it supposedly supports drag-and-drop, but I haven't tried it yet.

alt text

感性 2024-08-10 08:21:25

顺便说一句,您可以使用 Telerik AsyncUpload 控件通过拖放上传多个文件: http://demos.telerik.com/aspnet-ajax/asyncupload/examples/draganddrop/defaultcs.aspx

它提供内置的拖放上传功能。

BTW, you can use the Telerik AsyncUpload control to upload multiple files with drag and drop: http://demos.telerik.com/aspnet-ajax/asyncupload/examples/draganddrop/defaultcs.aspx.

It offers built-in drag and drop upload capabilities.

不必在意 2024-08-10 08:21:24

Telerik 有一个很好的多文件上传器

然而,没有拖放支持,不幸的是不是免费的。

Telerik has a good multiple file uploader.

No drag/drop support however and unfortunately not for free.

无尽的现实 2024-08-10 08:21:24

我在许多项目(ASP.net 和非 ASP.net)中使用过 SWFUpload,它是免费的并且运行良好。

I've used SWFUpload in numerous projects (ASP.net and not), it's free and works great.

思慕 2024-08-10 08:21:24

我已经成功使用Neat Upload

I have used Neat Upload with success.

如果没有你 2024-08-10 08:21:24

就文件上传的“拖放”而言,(当今的)标准浏览器技术无法实现这一点。您必须使用插件(如 Flash、ActiveX 等)来实现该场景并克服浏览器的限制。

[旁注:Silverlight 在这里也没有提供任何帮助。它的安全模型不允许将文件从桌面“拖入”插件以进行文件上传等操作。]

对于多文件上传,您有几种解决方案:

  1. 对于 true,“在以下位置选择多个文件”一旦”(Shift/Ctl + 单击),您仍然必须使用插件,例如 Silverlight 或 Flash。例如,Telerik 为 Silverlight 制作了 RadUpload,可在 ASP.NET 网站中使用,以实现“真正的”多文件上传体验:ASP.NET 中 SL 的 RadUpload 演示

  2. 如果您不需要插件,则会受到浏览器上传的限制再次标准一次选择一个文件。当然,您可以选择多个文件,然后将它们一起上传,但您必须一次选择一个文件。对于这种类型的场景,有一些控件,例如 RadUpload for ASP.NET AJAX,它们几乎使您能够使用浏览器标准执行尽可能多的操作:用于 ASP.NET AJAX 的 RadUpload 演示

由于安全原因,浏览器对丰富的上传体验的支持非常有限。这可能是最常见的浏览器“限制”之一,Flash 和 Silverlight 等插件可以帮助克服。

希望背景有帮助。

As far as "drag and drop" is concerned for file uploads, this cannot be achieved with (today's) standard browser technology. You must use a plug-in (like Flash, ActiveX, etc.) to achieve that scenario and overcome the limits of the browser.

[SIDE NOTE: Silverlight offers no help here (yet) either. It's security model does not allow dragging files from the desktop "in to" the plug-in for operations like file upload.]

For multi-file uploads, you have a couple of solutions:

  1. For true, "select multiple files at once" (Shift/Ctl + click), you still must use a plug-in, like Silverlight or Flash. As an example, Telerik makes RadUpload for Silverlight that can be used in an ASP.NET website to enable "true" multi-file upload experiences: Demo of RadUpload for SL in ASP.NET

  2. If you don't want a plug-in, you're limited by browser upload standards again to selecting one file at a time. You can, of course, select many files and then upload them together, but you have to make the selections one file at a time. For this type of scenario, there are controls like the RadUpload for ASP.NET AJAX that pretty much enable you to do as much as you can with browser standards: Demo of RadUpload for ASP.NET AJAX

Due to security, browsers do have pretty limited support for rich uploading experiences. It's probably one of the most common browser "limits" that plug-ins like Flash and Silverlight help overcome.

Hope that background helps.

泡沫很甜 2024-08-10 08:21:24

我强烈推荐 Uploadify 作为多文件上传器。它使用 jquery 和 flash 允许用户通过 ctrl + 单击所有所需文件一次上传多个文件。然后,它会显示文件上传的队列,并在完成后从队列中删除文件。它还允许您指定允许用户上传哪个扩展,这使您不必进行扩展验证。

I highly recommend Uploadify as a mulitple file uploader. It uses jquery and flash to allow the user to upload multiple files at once through ctrl + clicking on all desired files. It then displays a queue of the files uploading and removes the file from the queue on completion. It also allows you to specify which extension to allow the user to upload as well which prevents you from having to do extension validation.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文