fine-uploader

FineUploader - add authentication in header

笑着哭i 提交于 2019-12-01 01:09:33
问题 I'm using FineUploader 3.7 in cross domain uploading project. Everything is fine until I move the code to client's DEV server which has simple authentication. Is there a way to embed authentication information in the form when the preflight request is sent to the server? I have tried to embed basic auth in headers, however not working. Please refer to the code below: $.ajaxSetup({ headers: { 'Authorization': "Basic YZVjaGFmbWluOkNieWxjBTY3" }, beforeSend: function (jqXHR, settings) { jqXHR

FineUploader OnComplete method not firing. Newbie, require some handholding

落爺英雄遲暮 提交于 2019-11-30 23:28:30
So, I'm using FineUploader 3.3 within a MVC 4 application, and this is a very cool plugin, well worth the nominal cost. Thanks for building this, very useful. Now, I just need to get it working correctly. I'm pretty new to MVC and absolutely new to passing back JSON, so I need some help getting this to work. Here's what I'm using, all within doc.ready. var manualuploader = $('#files-upload').fineUploader({ request: { endpoint: '@Url.Action("UploadFile", "Survey")', customHeaders: { Accept: 'application/json' }, params: { //variables are populated outside of this code snippet surveyInstanceId:

FineUploader OnComplete method not firing. Newbie, require some handholding

核能气质少年 提交于 2019-11-30 17:59:30
问题 So, I'm using FineUploader 3.3 within a MVC 4 application, and this is a very cool plugin, well worth the nominal cost. Thanks for building this, very useful. Now, I just need to get it working correctly. I'm pretty new to MVC and absolutely new to passing back JSON, so I need some help getting this to work. Here's what I'm using, all within doc.ready. var manualuploader = $('#files-upload').fineUploader({ request: { endpoint: '@Url.Action("UploadFile", "Survey")', customHeaders: { Accept:

fine-uploader - how to use in combination with other input fields?

风格不统一 提交于 2019-11-30 07:39:37
I would like to use FineUploader within a typical form: <form enctype="multipart/form-data" method="post""> <input name="fileupload" type="file" "> <input type="text" name="title" size="45" maxlength="100"> <textarea name="description" cols="40" rows="8"></textarea> <input type="hidden" name="op" value="Add"> <input type="submit" value="Upload"> So I would actually like to mainly replace the <input name="fileupload" type="file" "> part. Unfortunately I am not very familiar with JavaScript and jQuery jet and have no idea how to do this. I could not find any exemplary code where FineUploader is

Symfony 3.1 and OneUpUploaderBundle + FineUploader = UploadListener is not called

与世无争的帅哥 提交于 2019-11-29 16:57:19
INTRODUCTION I am developing on Windows 10 Pro with XAMPP [1] which includes PHP v7.0.8 . [1] XAMPP for Windows I am using Symfony v3.1.2, OneupUploaderBundle and FineUploader in order to upload files to server. While setting things up I followed documentation of OneUpUploaderBundle [2] and FineUploader [3], [4]. [2] OneupUploaderBundle documentation [3] OneupUploaderBundle FineUploader example [4] FineUploader upload documentation PROBLEM File upload works fine and files are uploaded to oneup_uploader_endpoint('gallery') . However listener is not called and is displayed in Symfony Profiler

fine-uploader - how to use in combination with other input fields?

久未见 提交于 2019-11-29 10:34:46
问题 I would like to use FineUploader within a typical form: <form enctype="multipart/form-data" method="post""> <input name="fileupload" type="file" "> <input type="text" name="title" size="45" maxlength="100"> <textarea name="description" cols="40" rows="8"></textarea> <input type="hidden" name="op" value="Add"> <input type="submit" value="Upload"> So I would actually like to mainly replace the <input name="fileupload" type="file" "> part. Unfortunately I am not very familiar with JavaScript and

Symfony 3.1 and OneUpUploaderBundle + FineUploader = UploadListener is not called

Deadly 提交于 2019-11-28 11:58:17
问题 INTRODUCTION I am developing on Windows 10 Pro with XAMPP [1] which includes PHP v7.0.8 . [1] XAMPP for Windows I am using Symfony v3.1.2, OneupUploaderBundle and FineUploader in order to upload files to server. While setting things up I followed documentation of OneUpUploaderBundle [2] and FineUploader [3], [4]. [2] OneupUploaderBundle documentation [3] OneupUploaderBundle FineUploader example [4] FineUploader upload documentation PROBLEM File upload works fine and files are uploaded to