fine-uploader

FineUploader with S3 how to specify object name on S3

Deadly 提交于 2021-01-29 08:24:27
问题 Where do I specify the format or pattern for the server name that FineUploader creates when uploading to Amazon S3? I need to have greater control over how the file name and path is created on S3. Thanks. 回答1: Use the objectProperties.key option. You can provide a String value or a function that returns the intended key as a String . The following example demonstrates setting a key and performing a blocking action ( $.post ). It uses the jQuery plugin, // <snip> objectProperties: { key:

How to show progress during preprocessing of files in FineUploader?

扶醉桌前 提交于 2020-01-23 03:05:35
问题 I apply some preprocessing to files when uploading them with FineUploader (to Azure). Specifically, this means calculating the file's MD5 hash and possibly editing some specific elements of the bytes. I've implemented this and attached my code to the onSubmit event. Unfortunately, this process can take quite a lot of time, and users typically submit anywhere between 18 to 2000 files simultaneously. FineUploader doesn't add them to the UI nor does it show progress at this stage, leaving my

How to show progress during preprocessing of files in FineUploader?

☆樱花仙子☆ 提交于 2020-01-23 03:04:50
问题 I apply some preprocessing to files when uploading them with FineUploader (to Azure). Specifically, this means calculating the file's MD5 hash and possibly editing some specific elements of the bytes. I've implemented this and attached my code to the onSubmit event. Unfortunately, this process can take quite a lot of time, and users typically submit anywhere between 18 to 2000 files simultaneously. FineUploader doesn't add them to the UI nor does it show progress at this stage, leaving my

Using FineUploader with optional https?

女生的网名这么多〃 提交于 2020-01-15 19:13:28
问题 I have setup FineUploader on a site and I included a check box that allows users to upload files using HTTPS if the want to. Unfortunately if the user accesses the site using http and then tries to use ssl it errors out, I assume because of CORS issues. I assume it is a CORS issue because if I access the site using https and try to upload using ssl it works fine. I found some documentation about enabling CORS support, but it appears that you either need to make it so only CORS requests will

FineUploader responseJSON doesnt contain success in onComplete callback

萝らか妹 提交于 2020-01-07 05:35:07
问题 After getting the onComplete method to fire, I found that my responseJSON variable does not appear to contain the information I expected it to. Is this me screwing up somewhere(probably), or something not working quite right? FineUploader is recognizing a successful upload, so I know its getting the response, but when I log responseJSON in the onComplete, it prints "responseJSON: ". Just the file name. no braces, brackets, etc. Client Side Code uploader = new $("#collaboration-fine-uploader")

How to keep a session alive while a file uploads?

橙三吉。 提交于 2020-01-05 09:45:42
问题 I have an application that allows users to upload audio files. On some very large files (1-2GB) I have run into an issue that the users session/authentication will time out, so when the file finishes uploading (which it does successfully) the user is forced to log in again. I am using a third party tool called FileUploader on the front end and an ashx on the server side to handle the incoming file. Does anyone have suggestions on how to keep the session/authentication from timing out while

Fine Uploader - Get Width & Height Dimensions once Image is Selected/Uploaded

喜夏-厌秋 提交于 2020-01-04 05:19:07
问题 Using fine-uploader i need to be able to get the selected file's original width and height dimensions in pixels so that i can use them for later use on my page. Is there a way to do this either once the file is selected or on the on complete success callback? 回答1: Fine Uploader doesn't provide this type of data, but it's simple to determine the dimensions of an image yourself. First, convert the image file to an object URL ( URL.createObjectURL(file) ) then use that URL as the src attribute

How to assign custom css class to upload button in fineuploader?

社会主义新天地 提交于 2020-01-04 02:42:06
问题 I have below code to initialize the fineuploader. i want to assign my custom class to upload button. I tried mentioning subelement button: 'my-custom-class' under classes element(as shown below) but issue is button is not displayed. i am not sure what i am missing here? $("#my-file-uploader").fineUploader({ request: { endpoint: 'my endPoint' } classes: { success: 'alert alert-success', fail: 'alert alert-error', button: 'my-custom-class' } }); Update:- I also tried but then button click does

How to use Fine Uploader server-side in a non-MVC ASP.NET application

我只是一个虾纸丫 提交于 2020-01-01 06:24:08
问题 I have the following Fine Uploader code in markup in an aspx page in ASP.NET (not MVC) project: <link href="../js/fineuploader/fineuploader-3.5.0.css" rel="stylesheet"> <script type="text/javascript" src="../js/fineuploader/fineuploader-3.5.0.js"></script> <script type="text/javascript"> $(document).ready(function () { var uploader = new qq.FineUploader({ element: $('#fine-uploader')[0], request: { /* <-- THIS IS WHAT I NEED TO FIGURE OUT */ endpoint: 'server/handleUploads' }, autoUpload:

Fine Uploader to S3 bucket getting 405 Method Not Allowed error

末鹿安然 提交于 2019-12-30 18:05:09
问题 I have been banging my head against the wall on this and am entirely stumped. I am trying to use FineUploader to upload files directly to my Amazon S3 bucket. I have essentially copied the code from the fineuploader.com web page (Upload Files Directly to Amazon S3) and the server-side PHP. When I attempt to upload a file I see the post to the signature endpoint seems to work successfully but when it attempts to upload to S3 I get a 405 "Method Not Allowed" error. HTML <!DOCTYPE html> <html >