blueimp

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

拥有回忆 提交于 2019-12-05 17:59:16
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 I don't see any way to know which file the progress is for. The callback gets 2 parameters, "e" and

how can I reset a blueimp jQuery fileupload plugin?

徘徊边缘 提交于 2019-12-05 11:19:13
问题 The gist: how can I reset a blueimp jQuery fileupload plugin so that it thinks no files have been uploaded already? My Scenario I have an upload form that only allows one file to be uploaded. Once that file is uploaded, it is analyzed. At this point, the user has the option to click a "cancel" button, where I reset the rest of my viewmodel. When the user clicks cancel, I would like to reset the count of files the user has uploaded, because they're essentially starting fresh. I still want the

How to get md5 iterated md5 sum of every chunk, using blueimp jquery upload plugin

99封情书 提交于 2019-12-05 08:41:26
问题 I need to calculate and send an iterated md5-hash to my upload-api. But I don't know how. I´m using the tutorial found here: http://tutorialzine.com/2013/05/mini-ajax-file-upload-form/ Along with the blueimp jquery upload plugin. For sending only ONE FILE (file size smaller than chunk size), everything is working fine. But if a file is chunked, then I have no idea, how to catch the chunk to get md5 of it. At the end I have to make the md5 iteratively like described here: https://code.google

Symfony 3.1 and OneUpUploaderBundle + Blueimp = UploadListener is not called

给你一囗甜甜゛ 提交于 2019-12-05 02:38:44
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 OneUpUploaderBundle [2] and jQuery file upload [3], [4]. [2] OneupUploaderBundle documentation [3]

How use Jquery-File-Upload PHP with database in last release?

空扰寡人 提交于 2019-12-04 20:24:46
How to use jQuery-File-Upload with PHP and database? I want to insert or delete rows about images when I upload or delete images and that name of each image will be as time() when they are uploaded to the directory. All result I found through google tell me that I need edit to upload.class.php but the last release has index.php and UploadHandler.php only ... file UploadHandler.php has class UploadHandler with code public function post($print_response = true) { if (isset($_REQUEST['_method']) && $_REQUEST['_method'] === 'DELETE') { return $this->delete($print_response); } $upload = isset($

jQuery-File-Upload by blueimp - additional headers

▼魔方 西西 提交于 2019-12-04 09:07:51
问题 I've searched through wiki but couldn't find an answer where should I put my additional headers (for example Authorization header) in JS script? Somewhere onSend / beforeSend or? Widget link: https://github.com/blueimp/jQuery-File-Upload 回答1: Did you try to set additional headers through "options.headers" object? If using the forceIframeTransport: true option (with IE not supporting XHR file uploads you need to fall back on the hidden iframe approach), then modifying headers is not an option:

blueimp jQuery-File-Upload - How do I submit form without files attached?

喜夏-厌秋 提交于 2019-12-04 08:43:39
问题 I have found solutions on how to add additional form data when submitting the file upload form. This question is how to upload the additional data if there is no file to upload. I am using blueimp jquery-file-upload in a task management app in order to drag and drop files and attach them to a task. The script is initialized and setup to not automatically upload when files are attached. On the fileuploadadd callback I attach data.submit() to my submit event handler. This accomplishes that we

Large gap between last file progress hitting 100% and the stop/done events?

非 Y 不嫁゛ 提交于 2019-12-04 04:33:10
问题 I am using the blueimp File Upload plugin to implement some file upload functionality and I've noticed that there can be large gaps of time between when my last file progress bar hits 100% and when the stop and done events fire.I have the following code: $('#fileupload').fileupload({ dataType: 'json', progress: function (e, data) { var progress = parseInt(data.loaded / data.total * 100, 10); var bar = data.context.children().children(".progress"); $(bar).css("width", progress + "%"); }, add:

Finish of Multiple file upload

為{幸葍}努か 提交于 2019-12-04 03:03:44
问题 I have a question about the use of Blueimp jQuery-File-Upload plugin (https://github.com/blueimp/jQuery-File-Upload) There is a callback function or an alternative method, to know when is finished an upload of multiple files? I do not want to know when is finished the upload of every single file, but when is finished the entire process (All Uploads Complited). There is also the opportunity to know how many files have actually been loaded and how many they were requested? 回答1: Please have a

How to remove file from the queue to stop upload before upload starts in blueimp Basic?

て烟熏妆下的殇ゞ 提交于 2019-12-04 02:22:53
Here is the thing, I want cancel button similar to Basic plus UI or jQuery UI in Basic . This question might look silly to you. But actually i got confuse from template which blueimp are using in Basic plus UI or jQuery UI to list upload and downloaded file with start, delete and cancel button. EDIT 1 here: Even i can't use that template because i am working in twig template, which has similar syntax which give error if i use. I need code to remove file from the queue and to prevent upload before upload start. I searched that _cancelHandler is in jquery.fileupload-ui.js but there are lots of