plupload

Plupload Upload + Synchronous form question

匿名 (未验证) 提交于 2019-12-03 07:50:05
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a setup with a traditional form that's checked with jQuery Tools validator and submitted via POST. I like that this class does not require extra classnames or other superfluous metadata to validate, standard HTML5 attributes are enough. I now would like to extend this functionality with the Plupload upload solution. I know that all modern upload solutions work via Ajax these days, so I was thinking about a setup in which the user fills out the form, puts files in the upload queue and then submits the form. The form submit would imply:

Plupload - Restrict to only one file

自闭症网瘾萝莉.ら 提交于 2019-12-03 06:47:51
问题 I don't see an option in the plupload API docs on restricting the number of files uploaded, to any number, even 1. Doc fail? or Feature fail? If it doesn't exist I'll be working on making that happen if anyone needs it.. 回答1: It's a feature fail. I made a wrapper around the jQuery API and this is what I did to make it work for me. My code does some other business logic, but it should give you enough to set started. Basically, bind to the FilesAdded event and call removeFile on the uploader

Plupload Html5 preview after Fileselect

情到浓时终转凉″ 提交于 2019-12-03 04:17:00
http://jsfiddle.net/VjeTk/78/ Using Plupload.com File uploader i want a preview image after file selection for html5 runtime browsers. Therefor i add to the FilesAdded Event uploader.bind('FilesAdded', function(up, files) { for (var i in files) { $('filelist').innerHTML += '<div id="' + files[i].id + '">' + files[i].name + ' (' + plupload.formatSize(files[i].size) + '<img src="' + SOMEHOWLOCALSOURCEOFIMAGE +'"/>') <b></b></div>'; } }); Problem is Plupload does not deliver the usual binary file object like html does. Thanks for ANY help. Plupload 2 has an image object, which you can use: https:

Plupload HTML4 Add Files dialog not triggering in IE

匿名 (未验证) 提交于 2019-12-03 02:31:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm using Plupload (jQuery version) with HTML4 for IE, and for some reason it's not opening the File Dialog when I press the Add Files button. The Plupload container is placed in a dialog, and I call .pluploadQueue() just before I show the dialog, each time. It works fine on FF and Chrome. 回答1: The Cause I call .pluploadQueue() just before I show the dialog, each time. The Solution Apparently, Plupload doesent seem to fire the dialog if the Plupload container is hidden ( display:none ) while evaluating .pluploadQueue() I had to do a display

How to use the plupload package with ASP.NET MVC?

匿名 (未验证) 提交于 2019-12-03 02:12:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using plupload version 1.3.0 More specifically how I have to define my controller action to support chunking? Can I use the HttpPosteFileBase as a parameter? At the moment I am using the following code to initialize the plugin In the HEAD tag <link type="text/css" rel="Stylesheet" media="screen" href="<%: Url.Content( "~/_assets/css/plupload/jquery.ui.plupload.css" )%>" /> <link type="text/css" rel="Stylesheet" media="screen" href="<%: Url.Content( "~/_assets/css/plupload/gsl.plupload.css" )%>" /> <script type="text/javascript" src="<%:

Amazon S3 Multipart Upload with plupload and Rails 3

徘徊边缘 提交于 2019-12-02 22:57:21
Amazon has multipart upload functionality where you can send a file in chunks and get it assembled on S3. This allows for some nice resume like functionality for uploading to S3. From another question i got this nice link: Rails 3 & Plupload My question is does anyone have any examples where they used the plupload chunking feature with the Amazon multipart feature? Ideally with carrierwave & fog. I can see it doing the following: Generate Unique ID for the upload with plupload, can we do an event when the plupload starts? Attaching an ajax request to the chunk completed with the ID Having ajax

WEB版一次选择多个文件进行批量上传(Plupload)的解决方案

匿名 (未验证) 提交于 2019-12-02 22:56:40
原文地址为: WEB版一次选择多个文件进行批量上传(Plupload)的解决方案 说明:Pl upload ! WEB FileUpload windows 本人在2010swfupload为核心进行文件的批量上传的 解决方案 。见文章: WEB版一次选择多个文件进行批量上传(swfupload)的解决方案 。 swfupload示例 IE9 随着HTML5 IE9 IE10 swfupload plupload Web ,同时上传多个文件。 的上传文件的引擎使用 Flash Silverlight HTML5 ,Gears, BrowserPlus 的FileUpload。 Feature Flash Gears Silverlight BrowserPlus Chunking √ √ √1 √ √ X Drag/Drop X √ √2 X √ X √ √ √3 √ √ X √ √ √3 √ √ X √ √ √4 √ √ X √ √ √ √ X X √ √ √5 √ √ √ √ √ √ √ √ X √ √ √ √ √ X √ √ √ √ X X 关于上表中的一些注意点说明: 文件拖放功能目录只适用于Firefox和WebKit。Safari在Windows上有一些奇怪的问题,需要解决。 多部分上传仅支持在Gecko和WebKit。 Flash Silverlight HTML5

Plupload - Restrict to only one file

て烟熏妆下的殇ゞ 提交于 2019-12-02 21:18:42
I don't see an option in the plupload API docs on restricting the number of files uploaded, to any number, even 1. Doc fail? or Feature fail? If it doesn't exist I'll be working on making that happen if anyone needs it.. It's a feature fail. I made a wrapper around the jQuery API and this is what I did to make it work for me. My code does some other business logic, but it should give you enough to set started. Basically, bind to the FilesAdded event and call removeFile on the uploader object (if there are too many files). I think I added the 50ms timeout because it was giving me problems with

How to make a loop for multiple plupload

孤街醉人 提交于 2019-12-02 05:17:57
I have a piece of code like that: $(function() { var uploader1 = new plupload.Uploader({ runtimes : 'gears,html5,flash,silverlight,browserplus', browse_button : 'pickfiles1', container : '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 : 240, quality : 90} }); uploader1.bind('Init', function(up, params) { $('#filelist1').html("<div

plupload json response

跟風遠走 提交于 2019-12-01 22:06:46
问题 I can't seem to make the response a json object. the ajax function (url parameter to plupload) echoes the response like this: echo json_encode(array( 'foo' => 3434, 'error' => 'omg error', )); exit; and in the FileUploaded event I'm evaluating that: var json = eval('(' + response + ')'); console.log(json); But I get a error Uncaught SyntaxError: Unexpected identifier 回答1: Try to use jQuery parseJSON method. var json = $.parseJSON(response); 回答2: As of v3.0 of jQuery, $.parseJSON(response) has