fine-uploader

fineuploader - Read file dimensions / Validate by resolution

风格不统一 提交于 2019-12-11 08:34:49
问题 I would like to validate by file dimensions ( resolution ). on the documentation page there is only information regarding file name and size, nothing at all in the docs about dimensions, and I also had no luck on Google. The purpose of this is that I don't want users to upload low-res photos to my server. Thanks. 回答1: As Ray Nicholus had suggested, using the getFile method to get the File object and then use that with the internal instance object qq.ImageValidation to run fineuploader's

FineUploader CORS selectively working

£可爱£侵袭症+ 提交于 2019-12-11 07:09:22
问题 I have been working with FineUploader successfully, and had a requirement to save to a different subdomain - HTML code at example.com, endpoint.php at upload.example.com. I have it working perfectly every time in Safari uploading several small files. Those same small files always upload on FireFox and Chrome on Mac (latest versions as of January 2014), but I only get success feedback selectively with FireFox and Chrome on Mac. It always has "Processing..." or a percentage "61%" although the

Need FineUploader Method uploadStoredFiles to Complete Before Proceeding

◇◆丶佛笑我妖孽 提交于 2019-12-11 06:55:35
问题 For some quick background, uploadStoredFiles() is a method used in the FineUploader plugin to asynchronously send attached file data to a server path. I'm also using AngularJS for my application. My question is actually very similar to the one found here... jQuery: wait for function to complete to continue processing? ... the big difference is that I don't have access to the callback function itself. Also, my script is running FineUploader as part of a larger form where attachments are

fine-uploader implementation

妖精的绣舞 提交于 2019-12-11 06:33:54
问题 I have my HTML file: <html> <head> <meta charset="utf-8"> <title>Fine Uploader Demo</title> <link href="fineuploader-3.4.1.css" rel="stylesheet"> </head> <body> <div id="fine-uploader"></div> <script src="jquery-1.7.2.min.js"></script> <script src="jquery.fineuploader-3.4.1.js"></script> <script> function createUploader() { var uploader = new qq.FineUploader({ // Pass the HTML element here element: document.getElementById('fine-uploader'), // or, if using jQuery // element: $('#fine-uploader'

Use FineUploader with Typescript (Angular2 project)

北慕城南 提交于 2019-12-11 06:07:14
问题 I'm facing a problem to use fineuploader library to my angular2 project. I Don't find a way to implement it without using fineuploader.js directly in the index html file. Is there an example of implementation for Typescript? Thank u ***Gulpfile*** gulp.task('restore:fine-uploader', function () { gulp.src([ 'node_modules/fine-uploader/**/*.*' ]).pipe(gulp.dest(libs + 'fine-uploader')); }); gulp.task('restore', [ 'restore:core-js', 'restore:zone.js', 'restore:reflect-metadata', 'restore

Alter file contents before uploading

此生再无相见时 提交于 2019-12-11 05:05:06
问题 I would like to encrypt the contents of a file before uploading to our server .. we are using fineuploader. What I would like to do is: function onSubmitted(id) { var file = uploader.getFile(id); var reader = new FileReader(); reader.onload = function (e) { //encrypt here // but how do I save the file back to fineuploader? //then continue to submit/upload }; reader.readAsArrayBuffer(file); } is there any way of doing this out of the box or will I need to resort to rampant hackery :) :) 回答1:

FineUploader uploading multiple files as one request

杀马特。学长 韩版系。学妹 提交于 2019-12-11 03:05:00
问题 I need to upload multiple files as one request. For example, i have two required files (.csv & .ctl) that I need to save. Basically on the server side, I'm reading the .csv file and checking it against the .ctl file. If certain criteria doesn't match, I don't need to upload it. I'm not sure how or need to update the 'upload' method to read the filenames[]. Nor if I need to update this line "uploader.fineUploader('uploadStoredFiles');" to now accept the filenames[] after the user clicks

Is it possible to reorder added files using Fine Uploader?

*爱你&永不变心* 提交于 2019-12-11 01:53:30
问题 I need to allow the user to select a number of images and then visually rearrange the order in which they are uploaded (ideally via a dragging interface) to my server. Does anyone know if this is possible with Fine Uploader? 回答1: I think you are going to have to ask the user to number the images no matter what. There are several instances that could cause your approach to backfire. Even if reordering is allowed, there is no guarantee that images uploaded simultaneously are going to complete

Fine Uploader to S3 Folder

*爱你&永不变心* 提交于 2019-12-10 21:06:44
问题 Does anyone know if it's possible to upload to a folder inside an S3 bucket using Fine Uploader? I have tried adding a '\foldername' to the request endpoint but had no luck with that. Thanks. 回答1: S3 doesn't have folders. Some UIs (such as the one in the AWS console) and higher-level APIs may provide this concept, as an abstraction, but S3 doesn't have any native understanding of folders, only keys. You can create any key you want and pass it along to Fine Uploader S3, it will store that file

FineUploaderBasic calling cancelAll()

给你一囗甜甜゛ 提交于 2019-12-10 12:17:41
问题 I am using FineUploaderBasic to integrate uploading to my existing web site. The problem I have is with cancelling current uploading file. This is my code: <div id="button" class="btn btn-large btn-primary"> <i class="icon-upload icon-white"></i> Upload <i class="icon-upload icon-white"></i> </div> <a href="#" id="cancelling">cancel</a> <div id="uploader"></div> <script> window.onload = function () { var uploader = new qq.FineUploaderBasic({ debug: true, element: document.getElementById(