fine-uploader

fineuploader - initial file list

瘦欲@ 提交于 2019-12-13 04:43:00
问题 I am using fineuploader (4.2) jquery version in a zf2 application. I am looking for help in getting the initial file list functionality working. Using fineuploader to upload the files, they are physically saved in the public/client-images directory. The uuid, filename, filesize are then saved in the database. To populate the initial file list, i have the following jquery: <script> $(document).ready(function () { var manualUploader = $('#jquery-wrapped-fine-uploader').fineUploader({ session :

fine-uploader generate more unique custom file ids

梦想的初衷 提交于 2019-12-13 04:42:28
问题 I am trying to change the default file ids (e.g. 0,1,2,..) to something more unique, but I haven't succeeded. Due to UI purposes, I need to create files list not like: qq-file-id-1 but like: qq-file-id-ahGklm is there any way to achieve this? Thank you My UI has 2 parts: 1) A modal window where the user adds files and using thumbnails is able to see all his files before uploading. There is the "upload" button. 2) A second container (outside the modal) where the user sees the uploading

Fine Uploader post to S3 returns response code 0

眉间皱痕 提交于 2019-12-13 04:30:43
问题 A customer with OSX Mountain Lion can't upload. Issue is present in both Safari and Firefox. I was able to get in remotely and grab some logs. Here is the console output: [13:02:17.497] [FineUploader 3.8.2] Submitting S3 signature request for 0 [13:02:17.497] [FineUploader 3.8.2] Sending POST request for 0 [13:02:17.568] POST http://removed/signature [HTTP/1.1 200 OK 462ms] [13:02:18.034] OPTIONS http://mybucket.removed/ [0ms] [13:02:17.985] no element found @ http://removed/the/url/of/the

FineUploader multiple instances and dynamic naming

蹲街弑〆低调 提交于 2019-12-13 04:23:37
问题 I am using FineUploader 4.0.8 within a MVC4 project using the jquery wrapper. Here is an example of my js code that creates a single instance of the fineUploader and is working just fine. At this time, I have the need for more than one instance of fineUploader, but each individual control doesn't know anything about the other and they're rendered as needed on a page (I've seen previous questions using a jQuery .each, which won't work here). Currently, I can't seem to correctly render any

FineUploader: Harvest original last modified date when uploading to Amazon S3

时光总嘲笑我的痴心妄想 提交于 2019-12-13 04:03:00
问题 I would like to send the last modified date of the uploaded file to the server. I have the javascroipt snippet to get that using FileApi ( $(this).fineUploaderS3('getFile', id).lastModifiedDate ). I would like to send this information when the uploadSuccess 's endPoint is called, but I cannot find the callback which is right for me at Events | Fine Uploader documentation, and I cannot find the way I could inject the data. These are submitted as POST parameters to my server when the upload

How to add headers at runtime in fine uploader

人走茶凉 提交于 2019-12-13 02:26:45
问题 I am using fine uploader for uploading file on server, For this I need to make 2 web api calls. On button click, First web api saving value and returning result in integer, and I need to pass that integer result in header for each file while uploading. But I am not able to pass values in headers, code, uploader = new qq.FineUploader({ element: $('#manual-fine-uploader1')[0], request: { endpoint: Url.AddEvaluationFiles, }, autoUpload: false, text: { uploadButton: '<i class="icon-plus icon

Fine Uploader: File is empty

时间秒杀一切 提交于 2019-12-13 02:24:37
问题 i'm trying to integrate "Fine Uploader" into my own CMS. After a successful upload, I remove the uploader to display a link to the file with a delete-button besides it. The problem is, that every upload fails, if the time period after the last upload is too short(less than ~30s). The problem only occurs on web-servers, not on my local one. uploader = $('.file-uploader').fineUploader({ request: { endpoint: fullpath+'/detailseite/upload/tmp' }, validation: { allowedExtensions: extensions },

FineUploader OnComplete not being called

故事扮演 提交于 2019-12-12 05:37:34
问题 I'm having trouble with the onComplete call. It does not seem to be running the code inside onComplete. Here is what I have: <script> $(document).ready(function () { $("#fine-uploader").fineUploader({ request: { endpoint: 'upload2.php' }, text: { uploadButton: 'Upload a file' }, callbacks:{ onComplete: function(id, fileName, responseJSON) { alert("completed"); if (responseJSON.success) { $('#imgPreview').html('Thumbnail:<img src="../images/test/' + fileName + '" alt="' + fileName + '">'); } }

How to translate the alert message displayed for validations

半腔热情 提交于 2019-12-12 04:47:30
问题 I cannot find a way to translate the error messages that are displayed in the alert box when a set a max size validation. 回答1: All messages and text in Fine Uploader are overridable. See the messages option in FineUploaderBasic mode, the messages option in FineUploader mode to override error and other related messages. To override any other text, see the text option in FineUploaderBasic mode and the text option in FineUploader mode. For example, if you want to customize the message that is

FINEUPLOAD pass the ID as parameter

≡放荡痞女 提交于 2019-12-12 03:56:15
问题 i got this divs <div id="thumbnail-uploader_1" class="thumbnail-uploader"> <div id="thumbnail-uploader_2" class="thumbnail-uploader"> and this Jquery call $('.thumbnail-uploader').fineUploader({ request: { endpoint: '/core/ajax/add_avatar.php', params: { one: function() { return this.id; } } }, multiple: false, validation: { allowedExtensions: ['jpeg', 'jpg', 'gif', 'png'], sizeLimit: 551200 // 50 kB = 50 * 1024 bytes }, text: { uploadButton: 'Klikněte nebo sem přetáhněte soubor' } }).on(