Tag: plupload

如何使用MVC 4上传大文件?

我有它的工作..但我注意到,一旦我上传的文件变得更大(约4000K)控制器将不会被称为.. 所以我在chunking中join了哪个修正了这个问题..但是现在当我打开文件时它充满了垃圾字符… 那么用plupload / MVC 4上传大文件的正确方法是什么? 这是我目前的代码 $(document).ready(function () { var uploader = new plupload.Uploader({ runtimes: 'html5', browse_button: 'pickfiles', container: 'container', // max_file_size: '20000mb', url: '@Url.Action("Upload", "Home")', chunk_size: '4mb', //filters: [ // { title: "Excel files", extensions: "xls,xlsx" }, // { title: "Text files", extensions: "txt" } //], multiple_queues: true, multipart: true, multipart_params: { taskId: […]

如何使用PLupload发送额外的数据?

我正在使用plupload来上传ajax文件。 现在plupload.Uploader类有很多选项,但没有其他的数据。 例如 : var uploader = new plupload.Uploader({ runtimes : 'gears,html5,flash,silverlight,browserplus', browse_button : 'pickfiles', container : 'contact_container', max_file_size : '10mb', url : 'upload.php', flash_swf_url : '/plupload/js/plupload.flash.swf', silverlight_xap_url : '/plupload/js/plupload.silverlight.xap', filters : [ {title : "Image files", extensions : "jpg,gif,png"}, {title : "Zip files", extensions : "zip"} ], resize : {width : 320, height : […]

在ASP.NET / C#中使用Plupload

UPDATE 我能够让所有的东西都能正常工作,而且我只想用最新的代码发布。 我使用了Darin Dimitrov关于使用单独的通用http处理程序来处理file upload的build议,所以这是我想出的代码…让我知道如果你有问题。 <%@ WebHandler Language="C#" Class="Upload" %> using System; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.IO; using System.Net; using System.Web; public class Upload : IHttpHandler { public void ProcessRequest(HttpContext context) { /** * If 'newTicket' is "false", then the directory to upload to already exists and we can extract it from […]