blueimp

Jquery File Upload - Not sending headers in IE9

雨燕双飞 提交于 2020-01-11 02:20:36
问题 I'm using jQuery Fileupload to upload files. Its not sending headers that I set to the server. Why is the Authorization header missing only in IE but passed in chrome? Here is the code: upload_photo: function(){ var url = '/api/v1/upload'; $('#photoupload').fileupload({ url: url, dataType: 'json', paramName: 'uploadFile', beforeSend: function ( xhr ) { setHeader(xhr); $("#check_progress").html('true'); }, done: function (e, responseJSON) { var id = responseJSON.result.id; url = responseJSON

Guzzle 6 Large file uploads / Chunking

人走茶凉 提交于 2020-01-07 04:30:54
问题 I've read that if Guzzle cannot determine Content-Length, it will send Transfer-Encoding: Chunked headers and cURL on the back-end will handling the chunking. But I'm obviously hitting post_max_size limit. ("POST Content-Length of 524288375 bytes exceeds the limit of 8388608 bytes) when POSTing to a working uploadChunkerController. I know the upload handler (endpoint) works with smaller files. I feel I have something configured wrong with my Guzzle options. I have to set verify to false and I

Blue Imps jQuery file upload send files with form like normal field

人盡茶涼 提交于 2020-01-06 08:42:09
问题 Is it possible to send file with form as normal file upload? When I check a file field it is always empty, and I need to send it with form data in one call. IS that possible? 回答1: There might be better answers out there, but I ended up solving this by following steps. Having 2 forms on the page. One for file upload and one for other form data. Format both forms using CSS so that user gets look and feel of one form. Have only one div (which looks like button) to submit. Hide the actual form's

Blueimp File Upload: add image from URL

删除回忆录丶 提交于 2020-01-02 09:25:12
问题 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. 回答1: 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

Blueimp file upload, how do you know which file the progress callback is for?

筅森魡賤 提交于 2020-01-02 06:43:07
问题 How do you know which file the progress callback is for? Even though I set sequentialUploads to true, in IE10 only (not Chrome/FireFox/Safari), when I select multiple files to upload at the same time, the data.files array in the add callback contains multiple files. With all other browsers, the add callback is called once for each file, the array is always just 1 file. So I do a for loop to handle each file in the add callback, no problem. However, now I'm updating the progress callback, and

jQuery file upload doesn't submit extra parameters

ε祈祈猫儿з 提交于 2020-01-02 06:12:25
问题 I need to use the formData parameter available in the jQuery File Upload control to send additional data to the server on submit. The default implementation for formData is to invoke a function that grabs all controls in the form and serializes them to an array (using the jQuery serializeArray() method). I have controls in my form, but when the file is uploaded, I am not getting any additional data. When I inspect via Fiddler, there is nothing in the request that shows these form fields are

Symfony 3.1 and OneUpUploaderBundle + Blueimp = UploadListener is not called

你。 提交于 2020-01-02 01:15:36
问题 INTRODUCTION Almost two weeks ago I created similar question about upload using OneupUploaderBundle , but with FineUploader library. Sadly there are no answers yet. In the meantime I tried setting up different upload library. I am developing on Windows 10 Pro with XAMPP [1] which includes PHP v7.0.8 . [1] XAMPP for Windows I am using Symfony v3.1.5, OneupUploaderBundle and Blueimp jQuery upload in order to upload files to server. While setting things up I followed documentation of

Why Blueimp's JQuery File Upload add all prev. selected files even if options [replaceFileInput: false] and [maxNumberOfFiles: 1] are set on init?

孤人 提交于 2019-12-30 06:28:11
问题 I have just normal form with some input fields and one file input field. I use the Blueimp's Jquery File Upload plugin to upload a file. It seems to work, if you select a file and after that click the upload button. But if you reselect files to upload, it saves all the prehistory of selections and after upload sends all the XHRs to the server. I want to upload only one currently selected file, not all the previously selected files (in file open dialog). Here is my js module to handle the

How to I preload existing files and display them in the blueimp upload table?

懵懂的女人 提交于 2019-12-29 04:42:47
问题 I am using the jquery-ui version of Blueimp upload and I like how I can format a table and display files that were just uploaded. But I'd like to use it as a file manager as well so I want to preload existing files and display than as if they were just uploaded. How can I do that? A sample link to where someone else has addressed this would suffice. BTW, I am uploading several different file types, not just images. Thanks! 回答1: I also had the same problem. It is not magic how it works. I

Showing description in lightbox using Jquery plugin blueimp gallery

烂漫一生 提交于 2019-12-25 14:40:30
问题 So what i want to do is add a description to the lightbox gallery. I am using jquery plugin blueimp image gallery and also the bootstrap image gallery plugin over the top. I've searched everywhere but there were only a few posts about it other than what is mentioned within the instructions of the documentation, so figured i'd ask. i'm sure that's probably whats causing the problem but first i'd like to know if there is a way to add a description preferably underneath the image, it can be