uploader

Asynchronous file uploader with MVC3/.NET?

风格不统一 提交于 2020-01-04 10:41:26
问题 everyone I am a student and new to .NET and specially MVC3 development. Currently in one of my projects part there is a form that includes few text fields and two file inputs. Keeping in view that the file uploaded could be of large sizes I want to use an Asynchronous file uploader which can show the progress of the file being uploaded so that user don’t feel like hanged up and stucked while the files being uploaded at the back, I want to keep user engaged and informed about the file upload

Get upload file count

二次信任 提交于 2019-12-23 01:13:59
问题 I am using jquery uploader from here and I would like to know how do I get the total number of files has been added and not uploaded. There is no specific documentation on the new version so can anyone say me how do I do this? As I need to get this way " uploading 1 of n files " Here in the documentation says: $('#fileupload').bind('fileuploadadded', function (e, data) { //Here I need to get the upload count. }); And If I as shown below it gives me count as 1 var totalfiles = data.files

JQuery File Uploader = error 405 IIS8.5

一笑奈何 提交于 2019-12-14 03:25:49
问题 I have a frustratingly annoying issue which I can't resolve and have checked LOTS of forum posts (including lots from stack overflow), and CANNOT find the resolution to the dreaded 405 error. I'm using the JQuery plugin - https://github.com/blueimp/jQuery-File-Upload/wiki/Basic-plugin - and have the most minimalistic page you can imagine to get it working, but each time I attempt to upload a file, in the console I get a message: HTTP Error 405.0 - Method Not Allowed The page you are looking

Multiple File Uploader Java

青春壹個敷衍的年華 提交于 2019-12-14 03:21:17
问题 I've created a program to upload images from one device to another. As it stands, the program only allows the user to upload one file at a time. If I wanted to edit the program to allow the user to upload several files at once, what would be the best way of doing it. String source1 = source.getSelectedFile().getPath(); System.out.println("Source1: " + source1); String nwdir1 = nwdir.getSelectedFile().getPath() + "\\" + filename; System.out.println("nwdir1: " + nwdir1); Path source = Paths.get

Image uploader and slider

依然范特西╮ 提交于 2019-12-13 11:14:46
问题 All my images upload next to each other rather than seperate images. How to fix? I have a 500 x 300 px box ScreenShot so u can see what i mean <?php if(isset($_FILES['ImageUpload'])){ // if the form has been submitted $imageName = $_FILES['ImageUpload']['name']; $imageTemp = $_FILES['ImageUpload']['tmp_name']; $imageType = $_FILES['ImageUpload']['type']; // filter image name $imageName = preg_replace("#[^a-z0-9.]#i","",$imageName); // error handling if(!$imageName){ echo("Please select a file

Dojo Uploader with Drag and Drop

倾然丶 夕夏残阳落幕 提交于 2019-12-11 10:36:20
问题 I am trying to recreate this example in my project, to add the drag and drop feature to the dojo uploader: http://archive.dojotoolkit.org/nightly/dojotoolkit/dojox/form/tests/test_Uploader.html Copying the exact same code in jsfiddle or in my application the line if(uploader.addDropTarget && uploader.uploadType=='html5'){ returns undefined for addDropTarget and iframe for the uploadType. I tried it with various browsers, and even added force: html5 in the uploader but nothing changed. Please,

PHP image uploader rename image?

六眼飞鱼酱① 提交于 2019-12-11 09:06:16
问题 I'm trying to rename an image when uploading it to my server. Is there generally an easy way of doing this? Below is the php code I'm using. I want to rename it as a variable I'm passing through as a hidden field from a html form. //variable from hidden field on form which is from mysql database $imageName = $_POST['image_rename']; if ((($_FILES["file"]["type"] == "image/gif") || ($_FILES["file"]["type"] == "image/jpeg") || ($_FILES["file"]["type"] == "image/jpg") || ($_FILES["file"]["type"]

Installing Uploader Plugin for CakePHP 2.x

人走茶凉 提交于 2019-12-11 06:38:48
问题 So I'm new at this whole CakePHP thing, but I'm looking to get the Uploader plugin installed. I'm stuck at the first installation step, after download/placing the files in the correct place: http://milesj.me/code/cakephp/uploader. I see this is the code I need to add somewhere: // CakePHP 2 CakePlugin::load('Uploader'); App::import('Vendor', 'Uploader.Uploader'); $this->Uploader = new Uploader(); But I don't know where to put it! I'm using the basic "Blog tutorial", but I changed the name

Multiple files uploader that integrates well with existing form

故事扮演 提交于 2019-12-11 00:20:05
问题 I know this question might be too generic, but after spending whole day with it I'm pretty lost on this one. Anyone knows of uploader plugin, that would integrate easily with existing form ? All the uploader plugins I tried - jQuery File Upload, Plupload, Uploadify, Dropzone.js - work great for files submission, but are impossible to integrate into existing form - usually they require some files in the queue to submit the form at all, have troubles to submit other form fields etc. I need

Edit and crop uploaded image

一个人想着一个人 提交于 2019-12-10 11:42:57
问题 Can you help me to edit this code? function insert_lenses(){ // to get userid $reg=$_SESSION['myusername']; $result_users = mysql_query("SELECT * FROM users WHERE user_name='$reg'"); while($row_users = mysql_fetch_array($result_users)) { $uid=$row_users[id]; } $uploader = $_POST['uploader']; $path = 'photos/'; $image=$_FILES['img_name']; $img_title=$_POST['title']; $img_tag=$_POST['tags']; $img_desc=$_POST['description']; $img_status=$_POST['status']; $lenses_id=$_POST['lenses']; $cam_id=$