FAQ Database Discussion Community


Override the Content-Type when using FineUploader direct to S3 bucket

amazon-s3,fine-uploader
I want to override the Content-Type to "application/octet-stream" when sending any file to s3 with fine uploader. I am uploading video files and when retrieving them I never want them to opened by the browser I always want the downloaded. I tried overriding it in the signature signing but then...

FineUploader onDelete and onComplete

php,jquery,fine-uploader
.on('complete', function(id, name, response) { console.log(id); console.log(response); console.log(name); $("input").attr({ type: 'hidden', name: id }).val(name).appendTo('form'); }) .on('deleteComplete', function(id, xhr, isError) { console.log(name); $('input[name=' + id + ']').remove(); }); I'm using latest FineUploader to upload images and add the image filenames as hidden fields (correct way) to post their location to PHP...

FineUploader - Passing customers parameters to the “Signature Endpoint”

javascript,fine-uploader
I've been looking around for a bit, and I found that there is no method to allow me to pass custom POST parameters to the signature endpoint. I'm using this because I'd like to build a generic server-side API, that allows all types of client-side uploaders. FineUploader is one of...

Default template not found

javascript,fine-uploader
I have just put the fineuploader CSS and JS files in my project and am getting a javascript error: JavaScript TypeError: Cannot set property 'innerHTML' of null - ...fine-uploader/fine-uploader.js:7238 Edit: which is this part of the fine-uploader.js file: qq.extend(this, { render: function() { log("Rendering template in DOM."); generatedThumbnails = 0;...

How to include Content-MD5 header in FineUploader Azure request?

azure,md5,fine-uploader
I would like to use the Content-MD5 header to supply Azure with a client-side generated MD5 hash of the files being uploaded. How would I accomplish this task in FineUploader? Target audience: Firefox, Chrome, Safari, Opera and IE10+. Judging by this answer I gather that it should be possible but...

Fine Uploader S3 - Nowhere to safely call the asynchronous “setUploadSuccessParams()”

javascript,jquery,amazon-web-services,amazon-s3,fine-uploader
I've been digging into Fine Uploader S3 for 2 weeks now, overall this is a really good plugin. However, I found one issue which I still haven't been able to overcome. I'm not sure if this is a plugin limitation or plain stupidity from my end. I need to use...

Change file name from within validateBatch?

fine-uploader
In validateBatch, I check if the file has already been uploaded. If it has, the user has the option to "replace" or "keep both." For the "keep both" option, I need to be able to change the file name before the upload is started. I wanted to use the setName...

Fine-Uploader php installation directory

php,installation,directory,fine-uploader
I just installed the php version of fine-uploader. I installed it to the folder in my root called fineuploader When I go to the admin panel, I login ok and then on the page mydomain/fineuploader/admin/settings/users it lists Admin as the only user. But the link shown for each of the...

FineUploader - “isBrowserPreviewCapable” variable not thrown out by Chrome 40, though it should

amazon-s3,fine-uploader
I noticed that in the FineUploader server demos (s3demo-thumbnails-cors.php), there is an area that checks if the browser supports preview. It simply checks this post variable: $_POST["isBrowserPreviewCapable"] The awkward thing here I'd like to ask is, I'm actually using Chrome 40, and I'm absolutely sure that preview is available for...

Access Actual File Name

jquery,fine-uploader
For some file name encoding concerns (users in Spain) and some other concerns, we need to manually structure the file name for the uploaded file. When Fine Uploader passes the information to the server, the code changes the target filename (in the use case below, to "my_name.jpg"). The handler.php file...

Clone element with fineuploader applied to it

javascript,jquery,fine-uploader
I apply FineUploader to an element, then clone it. The new element will open the file upload dialog, but won't upload a file. How can this be accomplished? http://jsfiddle.net/o4z7mtrd/ <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Testing</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.js" type="text/javascript"></script> <!-- <script src="/lib/plugins_3rd/fine-uploader-5.2.1/fine-uploader.js"...

Fine-Uploader - Validation “specific” for each Drag and Drop element

jquery,validation,fine-uploader
Dealing with Fine Uploader for the past 2 weeks, I see from the documentation that there is a "validation" option for the "extraButtons" option for Fine Uploader. This is great, as I can limit certain buttons to allow only certain extensions. However, I was wondering if there is validation implemented...

Holding the upload queue until the first upload is complete in fineupoader

javascript,fine-uploader
I have several files being uploaded with fineuploader but there are 2 things I want to try to do. Sort the queue in some way so the first file uploaded is a specific filetype. After that first file is uploaded change the endpoint and parameters of the other files using...

Fine-Uploader: extraButtons.element allows only ID, but not CLASS

jquery,fine-uploader
I'm using the Fine-Uploader plugin with some extra defined buttons as per the documentation here: http://docs.fineuploader.com/features/extra-buttons.html Here is my code: $gallery_upload.fineUploaderS3({ ... extraButtons: [{ element: $(".pdf-button"), validation: { allowedExtensions: ["jpg"] } }], ... Basically, it works pretty much as expected, except for one point. Please note that I have specified...

Work with php file outside public directory? I can access the file but receive error

javascript,php,directory-structure,fine-uploader
I'm starting to get frustrated and cannot work with a php file that is outside my public folder. I am using fineuploader and this php mini framework https://github.com/panique/mini. I have the following file structure where “public” is my public directory. application --controller ----album.php --libs --model public --css --img --js ----application.js...

“Could not find the file list container in the template” error

fine-uploader
I am getting message "Could not find the file list container in the template" appearing in my Javascript debug console when using fine uploader. Here is a jsfiddle example of the problem occurring. http://jsfiddle.net/Lu82ba9L/1/ The code from the example is repeated here <!-- using fine uploader 5.1.3 at http://keysymmetrics.com/jsfiddle/jquery.fine-uploader.js -->...

S3 jQuery objectProperties file (key) naming and path?

javascript,fine-uploader
I have a working implementation of the S3 + jQuery setup to my own bucket. One problem I noticed was by default the object created defaults to the UUID name for the file rather than the original file name. Adjusting my request to include objectProperties key "filename" resolved this BUT...

Override fineuploader delete behavior?

javascript,jquery,fine-uploader
Iam using http://fineuploader.com/ and the delete function. When fineuploader delete a file, it displays a loading image. I do not want to show any loading image and instead fade out the image. How can I override fineupload delete function "design" with jQuery? Fineuploader html <div class="qq-upload-list-selector"> <div class="col-lg-3 col-md-4 col-sm-6...

How to manipulate filestream in memory before uploading

javascript,azure,fine-uploader,fileapi
I'm working on an uploader that needs to censor a few bytes in the uploaded data by overwriting them to a predetermined value, before uploading them. Right now, I've hooked into the onSubmit event because it allows for non-blocking work to be performed. Below you can see my event handler....

How can I save fineuploaders uuid in a database?

javascript,php,fine-uploader
I am using http://fineuploader.com that automatically generates uuid to the image names. I want to store the uploaded image uuid in a database. I have found out that it should be possible to get the uuid with php $uuid = $_REQUEST['qquuid']; I have tested to put it it in my...

How to handle FineUploader POST request in Java in PlayFramework?

multipartform-data,playframework-2.2,fine-uploader
I am trying to integrate FineUploader in my play framework code. View part is set up properly and it is working fine. I am not clear how to retrieve file in my controllers upload method. And other query parameters, qquuid, qqfilename, content-type e.tc. Following is the dump of file upload...