blueimp

Can't get jquery file uploader to appear on page

醉酒当歌 提交于 2019-12-11 17:27:44
问题 Okay, I am about to pull my hair out here. I've been trying two different file uploader libraries, Blueimp's jQuery file uploader and Valums file uploader. I can't get an upload button to appear on my page with either of them. I am trying to put it inside of a form within a jQuery accordion div. I must have some problem with my code that's preventing it from showing up in my target div, but I get nothing whatsoever as far as errors in the console. Just nothing shows up. Any ideas? Here's the

Fileupload uploads files multiple times

僤鯓⒐⒋嵵緔 提交于 2019-12-11 12:27:44
问题 I'm having a strange problem using the jquery blueimp fileupload on an asp.net website. After some trial an error i have it up an running without much problem, and it's working more or less properly. However, there's some strange behaviour i can't work out. As the norm with any jquery plugins, it has to be initialized once the page loads. However, i can't use a regular $(document).ready due to the fact the webform it has to be used in contains multiple updatepanels, hence i need to use a

jQuery File Upload (Blue imp) Symfony 2 405 method not allowed

时光毁灭记忆、已成空白 提交于 2019-12-11 12:18:07
问题 I am using this bundle for a multi file upload in my symfony 2 project : https://github.com/1up-lab/OneupUploaderBundle in combination with this plugin : http://blueimp.github.io/jQuery-File-Upload/ The upload itself is working but i also get this error in my console: GET http://localhost/vdvinfra/web/app_dev.php/_uploader/gallery/upload 405 (Method Not Allowed) 665832b_jquery-2.0.3.min_1.js:6 x.support.cors.e.crossDomain.send665832b_jquery-2.0.3.min_1.js:6 x.extend.ajax7b52311_main_9.js:61

Restrict file types in BlueImp JQuery File Upload

旧城冷巷雨未停 提交于 2019-12-11 04:55:38
问题 Is there anyway we can restrict the file types in JQuery File Upload. From the documentation we have below code, but that is only for allowed file types. I want something for restricting file types.I want to allow all the file types but restrict .exe and .js files. Please let me know if there is any workaround for this. $('#file_upload').fileUploadUIX({ maxFileSize: 5000000, // Maximum File Size in Bytes - 5 MB minFileSize: 100000, // Minimum File Size in Bytes - 100 KB acceptFileTypes: /(zip

blueimp jQuery file upload not being triggered

别等时光非礼了梦想. 提交于 2019-12-11 03:07:03
问题 I'm trying to use the blueimp file upload plugin to asynchronously upload images but when I try to upload them nothing happens. None of the callback functions are being triggered at all. I'm using this function to bind the file uploader to the file inputs. var initFileUpload = function (gender) { //Used to bind fileupload plugin and send files //bind file upload $('#add_form').fileupload({ namespace: gender+'_image', singleFileUploads: true, formData: [{name:'gender', value: gender}],

import Blueimp jQuery File Upload in webpack

一笑奈何 提交于 2019-12-11 00:38:37
问题 i'm importing file like this import "blueimp-file-upload/js/vendor/jquery.ui.widget.js"; import "blueimp-file-upload/js/jquery.iframe-transport.js"; import "blueimp-file-upload/js/jquery.fileupload.js"; import "blueimp-file-upload/js/jquery.fileupload-image.js"; and altered webpack config with resolve: { alias: { 'load-image': 'blueimp-load-image/js/load-image.js', 'load-image-meta': 'blueimp-load-image/js/load-image-meta.js', 'load-image-exif': 'blueimp-load-image/js/load-image-exif.js',

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

jQuery File Uploader IE9 Not posting any params on Upload

自古美人都是妖i 提交于 2019-12-10 17:32:31
问题 I'm using the jQuery file uploader plugin along with rails 3. Plugin here: https://github.com/blueimp/jQuery-File-Upload I'm using the plugin to allow a user to upload a profile photo. The solution so far works with Chrome, Safari and Firefox. However on IE it fails. When you select a file in IE, the plugin posts to the server but there are no params, it's an empty post. Example post in chrome: Started PUT "/api/1/settings/ajax_photo_upload" for 10.0.1.3 at 2012-10-02 15:39:20 -0700

blueimp jquery-file-upload Doesn't throw error on unsuccessful add

徘徊边缘 提交于 2019-12-08 01:50:50
问题 In this plugin we can set various conditions/restrictions on file upload (e.g. acceptFileTypes, maxFileSize, maxNumberOfFiles, etc..) Whenever a file is added, an event is fired " fileuploadadd " and once the file is added successfully another event is fired " fileuploadadded ". However, when a file is added and it fails one of these condition/restriction (e.g. user tries to upload 2GB file, or text file instead of an image), there is no way find out programatically that this has occurred.

load blue-imp jquery fileupload with RequireJS

冷暖自知 提交于 2019-12-08 01:16:32
问题 I'm trying to load the jquery fileupload by blue-imp with RequireJS. I'm facing some problem while loading it. I tried the solutions like this and this but none worked with my situation. what i did in my main.js is require.config({ baseUrl : 'js', paths: { jquery: 'lib/jquery/jquery-1.11.0', jqueryfileupload : 'lib/jquery/jquery.fileupload', underscore: 'lib/backbone/underscore/underscore-min', backbone: 'lib/backbone/backbone-min', }, shim : { 'underscore' : { exports : "_" }, 'backbone' : {