jquery-file-upload

jQuery-File-Upload where is the file data when pre processing? http://blueimp.github.io/jQuery-File-Upload/

妖精的绣舞 提交于 2019-12-08 01:10:49
问题 I've started playing around with the excellent http://blueimp.github.io/jQuery-File-Upload/ file upload project. From the File Processing Options section of the documentation it seems that jquery.fileupload-process.js will let me parse and even modify the file's binary data (files array - with the result of the process applied and originalFiles with the original uploaded files) (to parse, or append to it or encrypt it or to do something to it) but for the life of me I can't seem to figure out

jQuery File Upload doesn't work in IE9 when compressed with Requirejs

喜欢而已 提交于 2019-12-08 00:57:42
问题 My code uses Backbone with Requirejs and jQuery File Upload and works perfectly in IE 9 when I access the development code directly (without building). As soon as I build it something goes wrong and the request is sent empty to the server. The only difference I see in the request (using Network capturing in IE9) is that the one that works when I click in the upload button, the Initiator is click , and for the one that fails, the initiator is JS Library XMLHttpRequest . So there must be

How to change upload folder dynamicly

早过忘川 提交于 2019-12-07 23:44:37
问题 I'm using Backload file upload controller in my CustomerPortal build with MVC4. Within the CustomerPortal you can add SupportCalls. Within the SupportCall you can attach files. Every SupportCall has its own Guid. The web.backload.default.config file contains the default upload location of the file "~/Files". However I want the file location to be different for every SupportCall. Like: "~/Files/d764578d-2f13-4820-bf1f-3d4427aedf22" where the Guid differs every time. How can I achieve that? 回答1

upload a large file over 1GB to 2GB using jQuery File Upload - blueimp (Ajax based) php / yii it showing error in Firefox Browser

半腔热情 提交于 2019-12-06 23:36:42
问题 I am trying to upload a large file over 1GB to 2GB using jQuery File Upload - blueimp (Ajax based) php / yii Framework 1.15 i have set these values to upload larger file memory_limit = 2048M upload_max_filesize = 2048M post_max_size = 2048M Session time set ini_set('session.gc_maxlifetime', 7200); I test lesser than 1GB file that is uploading successfully when I am trying to upload larger than 1GB file it shows Forbidden error after 50mins uploading time... Server Specifications it's a

Using backload to store files in database

江枫思渺然 提交于 2019-12-06 11:15:02
I'am trying to use backload ( https://github.com/blackcity/Backload ) to upload images to a mvc application we are currently building. It is supposed to be able to store images in database but I had no luck finding an example that demonstrates this features. Anyone had luck with this? thanks I had a similar requirement and didn't want to use the entityframework, so this is how I handled it : Custom Controller : public async Task<ActionResult> UploadImage() { FileUploadHandler handler = new FileUploadHandler(Request, this); handler.StoreFileRequestFinished += handler_StoreFileRequestFinished;

jQuery-File-Upload where is the file data when pre processing? http://blueimp.github.io/jQuery-File-Upload/

被刻印的时光 ゝ 提交于 2019-12-06 11:02:57
I've started playing around with the excellent http://blueimp.github.io/jQuery-File-Upload/ file upload project. From the File Processing Options section of the documentation it seems that jquery.fileupload-process.js will let me parse and even modify the file's binary data (files array - with the result of the process applied and originalFiles with the original uploaded files) (to parse, or append to it or encrypt it or to do something to it) but for the life of me I can't seem to figure out where is the actual file data within the array so that I can pre-process it before it uploads. What

jQuery File Upload doesn't work in IE9 when compressed with Requirejs

时光毁灭记忆、已成空白 提交于 2019-12-06 10:06:44
My code uses Backbone with Requirejs and jQuery File Upload and works perfectly in IE 9 when I access the development code directly (without building). As soon as I build it something goes wrong and the request is sent empty to the server. The only difference I see in the request (using Network capturing in IE9) is that the one that works when I click in the upload button, the Initiator is click , and for the one that fails, the initiator is JS Library XMLHttpRequest . So there must be something making the event change when the code gets compressed, but I have no idea how to get closer to the

Rails wrap_parameter not working as expected

Deadly 提交于 2019-12-06 08:15:27
问题 I'm working with AngularJS and the jQuery-file-uploader plugin. I've configured rails to wrap my parameters with ActiveSupport.on_load(:action_controller) do wrap_parameters format: [:json] end This is working fine for everything except when I try and upload my files. I'm using the uploader plugin slightly differently to normal but it should still be working. Rather the letting the plugin upload files when they're added, I'm creating a new record, and THEN uploading the files. The request is

Blueimp File Upload: add image from URL

前提是你 提交于 2019-12-06 06:28:01
I am using jQuery File Upload plugin ( http://blueimp.github.io/jQuery-File-Upload/ ) for image upload for my website. I want to add image from URL, when user add in textbox. You have to find a way to download the image from the URL, convert the img into any Type supported by the blob constructor, build a blob file, and call the jQuery File Upload add method like $('#fileupload').fileupload('add', {files: blob})', all grammatically with javascript. Check this out: https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob and this http://qnimate.com/javascript-create-file-object-from-url/ If

Why don't jQuery File Upload plugin's process events trigger?

时光怂恿深爱的人放手 提交于 2019-12-06 04:10:01
I have a weird problem with jQuery File Upload plugin. If I use this sitax: $('fileupload').fileupload({ url: myurl, add: function(e, data){ console.log("add event"); }, processalways: function(e, data){ console.log("processalways event"); } }); processalways event don't occur, but I got correct data.context variable (i.e. the div with the progress bar of the added file). While when I use this sintax $('fileupload').fileupload({ url: myurl }).on('fileuploadadd',function(e, data){ console.log("add event"); }).on('fileuploadprocessalways', function(e, data){ console.log("processalways event"); }