jquery-file-upload

Programmatic file upload with jQuery-File-Upload

半世苍凉 提交于 2019-12-14 03:18:16
问题 I use jQuery-File-Upload plugin for uploading the images. now I create an image from canvas und would like to use the same mechanismus to transfer this image to the server. In jQuery-File-Upload documentation I found the way to use the fileUpload component programatically but it expects the list of files as parameters $('#fileupload').fileupload('send', {files: filesList}); in my case I have the image in form of base64. var image = canvas.toDataURL(); how can I use fileUpload component to

JQuery-File-Upload 404 Error on Delete

给你一囗甜甜゛ 提交于 2019-12-14 03:16:56
问题 I installed JQuery-File-Upload (and Backload) using NUGET into my VS2013 MVC 4.5.1 project. The file upload works great and I successfully uploaded 3 files. However, when I attempt to delete any of the files, nothing appears to happen on the page and Fiddler reports a 404 error. Moreover, all the files exist and the folder and files within them have been set to EVERYONE with full control. Also note, the message below specifies a path for backload's handler, but, the path doesn't exist ...

Change data-url via jquery

你离开我真会死。 提交于 2019-12-13 23:12:56
问题 I am trying to use jquery to change the data-url attribute used by a file upload. But it doesn't seems to be working. The file upload takes the old value. $('#fileupload').attr('data-url', "https://api.mysite.com/optimizeonly"); HTML <input id="fileupload" class="fileupload" type="file" name="file[]" data-url="https://api.mysite.com/upload" multiple="">` Snippet: $('#fileupload').attr('data-url', "https://api.mysite.com/optimizeonly"); <script src="https://ajax.googleapis.com/ajax/libs/jquery

Jquery File Upload change session id

佐手、 提交于 2019-12-13 06:12:56
问题 I've been trying to solve this problem for days without success. I am using blueimp Jquery File Upload and everything works fine but I need to save my pictures in different folders depending on a parameter send by url like /index.php?customer=160 <input type="hidden" name="customer" value="<?php print $_GET["id_cliente"];?>"> I created the hidden field in the form and got it in the uploadhanndler.php. /files/'.$_POST['customer'].' , here everything goes ok, the file is saved on the folder I

jQuery File Upload Basic Plus Ui and i18n

风格不统一 提交于 2019-12-13 00:52:59
问题 I use jQuery File Upload Basic Plus Ui for a multiple upload files. I need to display error messages in multiples languages (English, French and Spanish) but I don’t know how to create messages: { maxNumberOfFiles: 'Maximum number of files exceeded', acceptFileTypes: 'File type not allowed' maxFileSize: 'File is too large', minFileSize: 'File is too smal } in multiple languages and how to declare the language for file.error = settings.i18n('acceptFileTypes'); With the demo version, the errors

File Upload and knowing the directory structure

↘锁芯ラ 提交于 2019-12-12 07:18:59
问题 We are using jquery fileupload to drag and drop files (and folders) from a local computer to a browser. This works great but we can't capture the directory structure of the files within the folder. I understand why (from a security perspective and javascript) this doesn't work, but does anyone have any thoughts on best ways to achieve the same thing. Again, I want my customer (internal app) to drag and drop a folder into my application. My application can see the list of filenames and they

Ruby Shrine - crop & direct upload Safari issue

China☆狼群 提交于 2019-12-12 05:49:03
问题 I am implementing direct upload with Shrine, jquery.fileupload and cropper.js in the add portion I am loading the image from the file upload to modal, define the cropper and show the modal if (data.files && data.files[0]) { var reader = new FileReader(); var $preview = $('#preview_avatar'); reader.onload = function(e) { $preview.attr('src', e.target.result); // insert preview image $preview.cropper({ dragMode: 'move', aspectRatio: 1.0 / 1.0, autoCropArea: 0.65, data: {width: 270, height: 270}

multiple file upload jquery asp.net add, remove then add again

一曲冷凌霜 提交于 2019-12-12 05:28:12
问题 I am currently experiencing the exact same problem as here: Multiple File Upload with jQuery [removing file then adding it again]. So far I have managed this: function UploadFile(ajaxUrl, event) { if ($("p[id=alertFileCount]").is(":visible")) $("p[id=alertFileCount]").hide(); if (ajaxUrl == '' || ajaxUrl === undefined) { ShowErrorAlertUploadFiles(); return; } var fileList = []; var files = event.target.files; var $elem = $("a.attachMessageBtn"); if (ValidateFilesCount(files) === false) {

jQuery File Upload hooked to button

会有一股神秘感。 提交于 2019-12-12 04:53:24
问题 I am attempting to use the jQuery File Upload Plugin here The behavior I want is similar to the home page that loads - i.e - the ability to select multiple files - when selected I don't need the button to upload files individually (just remove with the cancel button individually) and remove all with the cancel button along the top bar I am developing my site in c# mvc and the file gets uploaded to a ECM solution via CMIS Browser Bindings so I dont actually hit an MVC controller method. As I

PHP Jquery File Upload // Username/Session Directories

泄露秘密 提交于 2019-12-12 01:38:02
问题 I have been messing around with Blueimp's Jquery File Upload for a couple weeks on PHP and I am encountering some issues. I am teaching myself how to program in PHP so I am still getting acclimated to how things work, so apologies for any confusion and I will attempt to clarify as best I can. I need user uploads to be inserted into their specific username folders in the upload destination directory. I have followed the numerous writeups, answers and faqs for turning on said user directories