jquery-file-upload

blueimp jQuery File Upload Multiple Instance

◇◆丶佛笑我妖孽 提交于 2019-12-11 04:16:00
问题 I am trying to implement blueimp ajaxfile uploader in ASP.Net website Blueimp JQuery File Upload I was able to implement the uploader successfully apart from customizing some css due to space constraint. Now my actual requirement is to implement multiple instances of this control on this same asp.net page. If some one had tried to implement multiple instance of Blueimp JQuery File Upload for ASP.Net on same page please help me on this issue. Below is main portion of code I am using to add the

Add watermark using Jquery File Upload

十年热恋 提交于 2019-12-11 03:15:45
问题 I'm using jquery file upload and I can't seem to figure out a way to add a watermark after the image has been uploaded. http://blueimp.github.io/jQuery-File-Upload/ anyone have any ideas? 回答1: I know this is an old question, but I had to find a solution and here is my example. So You need to modify UploadHandler.php , I did it in function gd_create_scaled_image add: $stamp = imagecreatefrompng('../../img/stamp.png'); //path to your watermark file $im = $src_func($file_path); $marge_right = 10

How to have jquery upload accept all file types but php & js

痞子三分冷 提交于 2019-12-11 02:59:34
问题 I have this line on Jquery file upload: 'accept_file_types' => '/.+$/i', how to I modify that so it accepts all file types except PHP and Javascript files? 回答1: original 'accept_file_types' => '/.+$/i', change with 'accept_file_types' => '/\.(gif|jpe?g|png)$/i' or add new extension 'accept_file_types' => '/\.(gif|jpe?g|png|zip|pdf)$/i' 来源: https://stackoverflow.com/questions/14741239/how-to-have-jquery-upload-accept-all-file-types-but-php-js

jquery file Upload rails “Error Empty file upload result”

你离开我真会死。 提交于 2019-12-11 02:58:50
问题 I have such view (form partial): = javascript_include_tag 'car_photos' = stylesheet_link_tag('jquery.fileupload-ui') = form_for @car do |f| - if @car.errors.any? #error_explanation %h2= "Ошибки в полях: #{pluralize(@car.errors.count, "error")}" %ul - @car.errors.full_messages.each do |msg| %li= msg .tab#car-data{style: "height: 1290px;"} .field = f.label :manufacturer_id, "Марка" = f.select(:manufacturer_id, options_from_collection_for_select(VehicleManufacturer.all, :id, :name, @car

jQuery trigger only occurs first time

孤街醉人 提交于 2019-12-11 02:57:16
问题 Clicking #input multiple times will upload a file each time. Clicking #button which in turn triggers #input will only upload a file the first time (and not at all if #input was first clicked). I will, however, open the file selector browser, just not upload the file. Why is this, and how do I change it to allow it to be clicked multiple times? PS. Why I wish to do so instead of just using an #input ? I am using jQueryUI Dialog and wish one of the buttons to initiate the input. <!doctype html>

Customizing the jQuery-File-Upload (Basic Plugin)

寵の児 提交于 2019-12-10 20:33:34
问题 I came across jQuery-file-upload in a google search. I found it neat and exactly what I need but I'm having a small issue getting just a couple features the way I want it to work using the basic plugin. I figure the basic-plugin would be the best to shape and mold into exactly what I wanted. This is what I have so far. app.js $(function () { $('#fileupload').fileupload({ dataType: 'json', url: '../php/', add: function (e, data) { //$.each(data.files, function(index, file) { data.context = $('

Submit Additional Form Data without setting formData

感情迁移 提交于 2019-12-10 20:13:22
问题 I am following How-to-submit-additional-form-data and have a working fileupload that is submitting the additional form data, ie. the additional textarea input field, description[] , with chunking and multiple file support without setting formData:{ } on .fileupload() . My problem is that I am only able to submit the field as an array, description[] , and I am unable to come up with some logic to associate the appropriate description[i] with the appropriate file. I am using asp.net mvc which

Implementing Remove Buttons for jQuery-File-Upload

泪湿孤枕 提交于 2019-12-10 17:48:26
问题 I may be approaching this with an entirely wrong idea so let me explain my situation first. What I'm trying to achieve using jQuery-File-Upload is to allow the user to select files they choose to upload. They will be allowed to select multiple files. For now it doesn't matter what type but they'll mainly be uploading images. The selected files will appear in a list with a "remove" button to the right of the filename for each file. As pictured below. How can I implement a means of allowing the

File Upload control OnChange Event JQuery

荒凉一梦 提交于 2019-12-10 17:24:53
问题 I am trying to build the page to upload the file by using AJAX, JQUERY and .Net HTTPHandler as in http://dotnet.dzone.com/news/async-file-upload-jquery-and It works only for the first time I chose a file and uploaded it. But it doesn't work when I select the file next time and doesn't show any error. If I change the javascript event binding to the old school way like the following, it works perfectly. But I want to use the JQuery Binding. Is there anything I did wrongly? Thanks. <input id=

jquery multiple file upload limit number of files not working

强颜欢笑 提交于 2019-12-10 16:13:03
问题 Jquery multiple file upload with ajax. option : { limitMultiFileUploads : 3 } is not working for jquery file upload. This is what i did : $(function() { $('#attachUpload').fileupload({ dataType: 'json', limitConcurrentUploads: 1, option: { maxFileSize: 40000, maxNumberOfFiles: 2 }, start: function(e) { $('.btn-sent').unbind('click'); // important - remove all event handlers }, done: function(e, data) { var data = $.parseJSON(data._response.jqXHR.responseText); doneflag--; if (doneflag == 0) {