plupload

plupload does not seem to be uploading files in IE 9. It works in other browsers

烂漫一生 提交于 2019-12-05 09:16:22
In our project we are using plupload to upload a single excel file. This is working in all the browsers except IE9. On click of the upload link the file dialog box is displayed but nothing happens when tried to open the excel. Below is the code for reference and any help to solve this will be much appreciated. Thanks in advance! function initUploader(btnId, fileType, onSuccess) { if (typeof fileType == "undefined") fileType = "image"; var arrFilters = new Array(); var url = 'user/attachmentUpload'; switch (fileType) { case "image": arrFilters = [{title : "Image files", extensions : "jpg,jpeg

Plupload上传插件中文帮助文档

一世执手 提交于 2019-12-05 02:25:43
配置参数 实例化一个plupload对象时,也就是 new plupload.Uploader() ,需要传入一个对象作为配置参数。后面内容中出现的plupload实例均是指 new plupload.Uploader() 得到的实例对象 属性 类型 默认值 描述 browse_button String / DOM 触发文件选择对话框的DOM元素,当点击该元素后便后弹出文件选择对话框。该值可以是DOM元素对象本身,也可以是该DOM元素的id url String 服务器端接收和处理上传文件的脚本地址,可以是相对路径(相对于当前调用Plupload的文档),也可以是绝对路径 filters Object { } 可以使用该参数来限制上传文件的类型,大小等,该参数以对象的形式传入,它包括三个属性: mime_types: 用来限定上传文件的类型,为一个数组,该数组的每个元素又是一个对象,该对象有title和extensions两个属性,title为该过滤器的名称,extensions为文件扩展名,有多个时用逗号隔开。该属性默认为一个空数组,即不做限制。 max_file_size: 用来限定上传文件的大小,如果文件体积超过了该值,则不能被选取。值可以为一个数字,单位为b,也可以是一个字符串,由数字和单位组成,如’200kb’ prevent_duplicates:

Angular2 with Typescript, how to use Plupload CDN script file in lazy-loaded module?

瘦欲@ 提交于 2019-12-05 00:40:38
I would like to use Plupload in an Angular2 component and access the Plupload JavaScript file from a CDN. I want it specific to a component so that it is not downloaded if it is not required - I want it to be in a lazy loaded module. How can I do this? Now fully answered on this page! The result of this quest, which included offering and awarding bounties to two people who worked hard with me on it, is as follows: Example of using Plupload with Angular 2 and TypeScript How to Lazy load a script from a CDN in Angular 2 Example of how to use Plupload in a lazy loaded module How to use a lazy

How to upload files to a Amazon S3 bucket subfolder via POST?

余生颓废 提交于 2019-12-04 19:03:24
问题 I'm using plupload 1.4.2 to upload files directly to an Amazon S3 bucket. The question is, how can I upload them to a subfolder directly? What parameters should I configure in the policy or plupload object config? 回答1: Amazon S3 there is no concept of "folder" or "subfolder". Only objects. And an object has a "key". If you wanna upload a file to a folder or subfolder, simply put the object key like this: $key = "folder/subfolder/filename.extension"; And Amazon S3 will create the "imaginary"

Plupload multiple instances

北城以北 提交于 2019-12-04 09:48:56
I'm trying to set up unknown number of plupload instances on page. I need to dynamically add more instances and remove and reset some of them. I have the general idea, but nothing works. One of my tries is on jsfiddle . Thank you for all the help. Code: var uploaders = new Array(); initUploaders = function(uploaders) { console.log("initUploaders()"); $(".gallery").each(function() { var el = $(this); var button = el.attr("id") + "_uploader"; console.log("Init uploader id:" + el.attr("id")); var uploader = new plupload.Uploader({ runtimes: 'gears,html5,flash,silverlight,browserplus', browse

Plupload Html5 preview after Fileselect

孤人 提交于 2019-12-04 09:35:05
问题 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

Plupload HTML4 Add Files dialog not triggering in IE

自闭症网瘾萝莉.ら 提交于 2019-12-04 04:07:56
问题 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

AngularJS - Any way to call javascript after the template is linked?

大兔子大兔子 提交于 2019-12-03 17:05:15
I'm trying to use a jQuery plugin ( Plupload ) with AngularJS. I have created a directive that will be my file upload "widget". The directive looks like this (The code in the link function is a very simplified version of the example on the Plupload site ): .directive('myFileUpload', function () { return { restrict: 'E', replace: true, link: function(scope, element, attrs) { scope.uploaderProperties = { runtimes : 'html5,flash,html4', url : 'media/upload', max_file_size : '10mb', container: 'fileUploadContainer', drop_element: 'fileUploadDropArea' }; scope.uploader = new plupload.Uploader(scope

How to upload files to a Amazon S3 bucket subfolder via POST?

做~自己de王妃 提交于 2019-12-03 12:23:31
I'm using plupload 1.4.2 to upload files directly to an Amazon S3 bucket. The question is, how can I upload them to a subfolder directly? What parameters should I configure in the policy or plupload object config? Amazon S3 there is no concept of "folder" or "subfolder". Only objects. And an object has a "key". If you wanna upload a file to a folder or subfolder, simply put the object key like this: $key = "folder/subfolder/filename.extension"; And Amazon S3 will create the "imaginary" folder and subfolder. 来源: https://stackoverflow.com/questions/5512523/how-to-upload-files-to-a-amazon-s3

Amazon S3 Multipart Upload with plupload and Rails 3

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 08:56:09
问题 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