asyncfileupload

blueimp jquery file upload - “done”, “complete” callbacks not working for IE 9

烈酒焚心 提交于 2019-11-30 08:00:29
问题 I am using Blueimp Jquery File Upload plugin to upload files asynchronously. It works well in most other browsers (with a few minor issues) - on IE, I see this issue that the "done", "stop", "always", "complete" and some other event callbacks are not getting invoked. While debugging, I added console.logs in the "done", "fail", "always", and added a "complete" method to the ajax request in the _onSend function (in jquery.fileupload.js) - but none of them seem to get invoked in IE. _onSend:

ASP.NET WEBAPI file upload, issues with IE9

♀尐吖头ヾ 提交于 2019-11-30 05:53:37
I have created a file upload method using ASP.NET WEBAPI, below the code: [DataContract] public class FileDesc { [DataMember] public string name { get; set; } [DataMember] public string url { get; set; } [DataMember] public long size { get; set; } [DataMember] public string UniqueFileName { get; set; } [DataMember] public int id { get; set; } [DataMember] public DateTime modifiedon { get; set; } [DataMember] public string description { get; set; } public FileDesc(string rootUrl, FileInfo f,int pId, string aFileName) { id = pId; name = aFileName; UniqueFileName = f.Name; url = rootUrl + "/Files

grails asynchronous file upload

梦想的初衷 提交于 2019-11-29 18:12:30
Is there true asynchronous/ajax file uploading in grails that hooks into the default "busy" spinner (the one that shows on other ajax calls)? Or if I wanted to show that spinner during a file upload would I need to call is explicitly? Michael J. Lee This is one of those things that you usually want some help from a third party because of some of the complexities and restrictions behind the exchange. Some plugins are available for jquery that use Flash to accomplish this but I prefer to avoid anything that uses Flash (personal preference). Check out Valums Ajax-Upload I've used it now for about

How to make JQuery file upload plugin call backend only once for all the files in an upload?

谁说胖子不能爱 提交于 2019-11-29 16:09:16
I'm using sails.js to build a website. I have a model named timeline . It has some text fields along with a collection named pictures . Each timeline can have multiple pictures . I want to update all these fields at once when user clicks save . I'm using JQuery file uploader to help multifile upload. Problem is, JQuery file upload calls my backend file-uploader service once for each picture uploaded. I need to update the other text fields only once and they need to be updated before the pictures records get created since each picture needs to have a timeline ID associated with them. Is async

blueimp jquery file upload - “done”, “complete” callbacks not working for IE 9

不羁的心 提交于 2019-11-29 05:55:39
I am using Blueimp Jquery File Upload plugin to upload files asynchronously. It works well in most other browsers (with a few minor issues) - on IE, I see this issue that the "done", "stop", "always", "complete" and some other event callbacks are not getting invoked. While debugging, I added console.logs in the "done", "fail", "always", and added a "complete" method to the ajax request in the _onSend function (in jquery.fileupload.js) - but none of them seem to get invoked in IE. _onSend: function (e, data) { var that = this, jqXHR, slot, pipe, options = that._getAJAXSettings(data), send =

ASP.NET WEBAPI file upload, issues with IE9

无人久伴 提交于 2019-11-29 04:08:06
问题 I have created a file upload method using ASP.NET WEBAPI, below the code: [DataContract] public class FileDesc { [DataMember] public string name { get; set; } [DataMember] public string url { get; set; } [DataMember] public long size { get; set; } [DataMember] public string UniqueFileName { get; set; } [DataMember] public int id { get; set; } [DataMember] public DateTime modifiedon { get; set; } [DataMember] public string description { get; set; } public FileDesc(string rootUrl, FileInfo f

HTML5 multiple file upload: upload one by one through AJAX

二次信任 提交于 2019-11-28 15:49:10
I have a multiple files upload form: <input type="file" name="files" multiple /> I am posting these files with ajax. I would like to upload the selected files one by one (to create individual progress bars, and out of curiousity). I can get the list of files or individual files by FL = form.find('[type="file"]')[0].files F = form.find('[type="file"]')[0].files[0] yieling FileList { 0=File, 1=File, length=2 } File { size=177676, type="image/jpeg", name="img.jpg", more...} But FileList is immutable and I can't figure out how to submit the single file. I think this is possible as I saw http:/

grails asynchronous file upload

左心房为你撑大大i 提交于 2019-11-28 12:37:15
问题 Is there true asynchronous/ajax file uploading in grails that hooks into the default "busy" spinner (the one that shows on other ajax calls)? Or if I wanted to show that spinner during a file upload would I need to call is explicitly? 回答1: This is one of those things that you usually want some help from a third party because of some of the complexities and restrictions behind the exchange. Some plugins are available for jquery that use Flash to accomplish this but I prefer to avoid anything

SWFUpload works in IE, but not in Firefox

六月ゝ 毕业季﹏ 提交于 2019-11-28 10:25:29
Using SWFUpload v2.2, Firefox 3, IE 8, Flash 10 In my ASP.NET application all uploads are being processed by upload.aspx (I have the correct upload_url set in the settings object). In IE 8 the uploads hit the upload.aspx page and are processed, but in Firefox they do not. Any suggestions? Most of the code for the page that the user visits to upload a file is shown here (note: master pages are being used): <script type="text/javascript" src="../swfupload/swfupload.js"></script> <script type="text/javascript" src="../js/handlers.js"></script> <script type="text/javascript"> var swfu; window

AsyncFileUpload postback causes double upload

微笑、不失礼 提交于 2019-11-28 01:58:58
I implemented the AsyncFileUpload control on a web page. This web page requires uploaded files to appear in a GridView . The GridView contains the following columns: " File Name ", " Confidential " Check Box, and a " Remove " button to remove the uploaded file. Since the AsyncFileUpload postback does not do a full page postback, I need to "force" a postback on the OnClientUploadComplete event of the AsyncFileUpload control in order to render the gridview after uploading a file. In the OnClientUploadCompleteEvent , I use javascript to call __doPostBack . In this postback, I only bind my