tag:blogger.com,1999:blog-8311385966220793010.post6392481488867339914..comments2024-03-28T15:57:30.236+05:30Comments on Sampath Lokuge Tech Blog: DropzoneJS with ASP.net MVC 5Anonymoushttp://www.blogger.com/profile/09444146937039539894noreply@blogger.comBlogger49125tag:blogger.com,1999:blog-8311385966220793010.post-33337740598921311792016-08-03T17:25:39.216+05:302016-08-03T17:25:39.216+05:30great explanation
great explanation<br />Anonymoushttps://www.blogger.com/profile/17372862162829903156noreply@blogger.comtag:blogger.com,1999:blog-8311385966220793010.post-59001382070278146202016-07-07T21:04:22.120+05:302016-07-07T21:04:22.120+05:30How can i modify the code so that i can save the u...How can i modify the code so that i can save the uploaded pictures to the sql database?raliothttps://www.blogger.com/profile/00059456645780289762noreply@blogger.comtag:blogger.com,1999:blog-8311385966220793010.post-55898286501911993722016-06-13T12:45:44.286+05:302016-06-13T12:45:44.286+05:30Hello, how to implement dropzone in mvc 4 with ent...Hello, how to implement dropzone in mvc 4 with entity frameworkAnonymoushttps://www.blogger.com/profile/13711330855765824643noreply@blogger.comtag:blogger.com,1999:blog-8311385966220793010.post-64789490041006818472016-05-28T23:17:15.947+05:302016-05-28T23:17:15.947+05:30Hello friend How i can ingrate dorpzone jquery w...Hello friend How i can ingrate dorpzone jquery with existing from have many inputs in asp.net mcv wahbahhttps://www.blogger.com/profile/03261165543283096409noreply@blogger.comtag:blogger.com,1999:blog-8311385966220793010.post-9966241686435663872016-02-17T12:32:36.162+05:302016-02-17T12:32:36.162+05:30Very well explained about DropJS with ASP.Net. Very well explained about DropJS with ASP.Net. Anjan Kanthttps://www.blogger.com/profile/04828716472838993215noreply@blogger.comtag:blogger.com,1999:blog-8311385966220793010.post-69698281209084126262015-12-21T16:23:18.643+05:302015-12-21T16:23:18.643+05:30Do we need to add enctype="multipart/form-dat...Do we need to add enctype="multipart/form-data" in form tag?<br />As i am getting only first image in Request.Files. <br />krishnahttps://www.blogger.com/profile/07341180991607915265noreply@blogger.comtag:blogger.com,1999:blog-8311385966220793010.post-16640487618435918952015-04-30T13:33:42.560+05:302015-04-30T13:33:42.560+05:30Excellent Post in Asp.net Mvc,
Here i have similar...Excellent Post in Asp.net Mvc,<br />Here i have similar article i.e. Asp.net Dropzonejs easy way to upload images c# with WebForms. Hope this will be helpfull for someone who need it in Asp.net Webforms.<br /><br />http://codepedia.info/2015/03/using-dropzone-js-file-image-upload-in-asp-net-webform-c/Anonymoushttps://www.blogger.com/profile/04004502900740095892noreply@blogger.comtag:blogger.com,1999:blog-8311385966220793010.post-27083546605488264692015-01-06T18:02:01.719+05:302015-01-06T18:02:01.719+05:30//You can Save the file content here
... //You can Save the file content here<br /> var fileSaveName = Path.GetFileName(file.FileName);<br /> file.SaveAs(Path.Combine(@"c:\YourProjectDirectory\YourApp\Images", fileSaveName));<br /> isSavedSuccessfully = true;Pacehttps://www.blogger.com/profile/01154633667212911314noreply@blogger.comtag:blogger.com,1999:blog-8311385966220793010.post-90407661271895451612015-01-05T20:47:04.623+05:302015-01-05T20:47:04.623+05:30Great tutorial. Someone who has actually tested th...Great tutorial. Someone who has actually tested their code before posting. Great stuff! Thank you. Pacehttps://www.blogger.com/profile/01154633667212911314noreply@blogger.comtag:blogger.com,1999:blog-8311385966220793010.post-66559126501551895642014-07-09T19:23:06.081+05:302014-07-09T19:23:06.081+05:30Hello Sampath Lokuge
How can i modify the code so...Hello Sampath Lokuge<br /><br />How can i modify the code so that i can save the uploaded pictures(file content) to the images folder of the application?<br /><br />this is based on the code comment that says: //You can Save the file content hereAnonymoushttps://www.blogger.com/profile/10927912821561633303noreply@blogger.comtag:blogger.com,1999:blog-8311385966220793010.post-40720609639403153592014-06-18T18:16:54.574+05:302014-06-18T18:16:54.574+05:30Hi srinivas,
Please put your question here : http...Hi srinivas,<br /><br />Please put your question here : http://stackoverflow.com/questions/tagged/dropzone.js with the Tag : dropzone.js <br /><br />or contact the author of DropzoneJs : G+ : https://plus.google.com/+MatiasMeno/posts OR Twitter : https://twitter.com/matenyo<br /><br />Good Luck ! :)Anonymoushttps://www.blogger.com/profile/09444146937039539894noreply@blogger.comtag:blogger.com,1999:blog-8311385966220793010.post-52795016823104004692014-06-18T15:42:26.487+05:302014-06-18T15:42:26.487+05:30here code snippet:
Code is given below.
MVC Cont...here code snippet: <br />Code is given below.<br /><br />MVC Controller:<br /><br /> public void Upload(HttpPostedFileBase file)<br /> { <br /> string key = string.Format("FileUploader{0}", file.FileName);<br /> try<br /> {<br /> AzureCache.Put(key, false); <br /> FileHelper fileUploader = new FileHelper();<br /> //Here we are using HTTP Web Request chunk wise upload<br /> fileUploader.Upload1(file.InputStream, file.FileName, key);<br /> System.Threading.Thread.Sleep((int)System.TimeSpan.FromSeconds(10).TotalMilliseconds);<br /> }<br /> catch (Exception ex)<br /> {<br /> }<br /> finally<br /> {<br /> AzureCache.Remove(key);<br /> }<br /><br /> //return "File uploaded: " + file.FileName; <br /> }<br /><br /><br /> public string Cancel(string fileName)<br /> { <br /> string key = string.Format("FileUploader{0}", fileName);<br /> AzureCache.Put(key, true);<br /> <br /> return "File get canceled: " + fileName;<br /> }<br /><br /><br /><br />Dropzone.Js:<br /><br /><br /> $(document).ready(function () { <br /><br /> Dropzone.options.frmUploader = {<br /> paramName: "file",<br /> maxFilesize: 10,<br /> init: function () {<br /> this.on("sending", function (file) {<br /> alert('Sending the file' + file.name)<br /> });<br /><br /> this.on("complete", function (file) { <br /> alert("Completed: "+file.name);<br /> });<br /><br /> this.on("removedfile", function (file) {<br /> alert("removedfile: "+file.name);<br /> });<br /><br /> this.on("canceled", function (file) {<br /><br /> $.get("Home/Cancel?fileName="+file.name, function (data) {<br /> $("#divResult").append(data);<br /> });<br /><br /> //alert(file.name);<br /> });<br /> },<br /> addRemoveLinks: true,<br /> };<br /> });<br /><br />Anonymoushttps://www.blogger.com/profile/05616398087849945770noreply@blogger.comtag:blogger.com,1999:blog-8311385966220793010.post-53611131193789926022014-06-18T15:41:43.463+05:302014-06-18T15:41:43.463+05:30Dropzone:
We are using dropzone in our MVC applic...Dropzone:<br /><br />We are using dropzone in our MVC application.One of our requiremnt is to cancel Inprogress uploads.<br />Currently we are uploading images and documents to sharepoint site.<br />When we drag and drop images, we are displaying removes links for each image i.e. those images which <br />are in progress with 'Cancel Upload' and queued files are with 'Remove Upload'.<br />Here when we drag and drop images, Upload action (i.e. reaching the controller from js) is firing first and there after if you click on 'Cancel Upload'button, cancel action is calling.<br /><br />Working fine in local system but this is not working perfectly in azure environment and here we are unable to cancel Inprogress upload images.(cancelled images are uploaded to sharpeint site)<br /><br />We can able to remove images from dropzone and at the same time inprogress images are not cancelling properly from code behind(MVC controller action).<br /><br />Also Upload method is taking time to reach controller than cancel action.<br />So, We verified the dropzone events and removed unnecessary dropzone code(removed progress bar code).<br /><br />We request you to provide solution for the above one as we need to cancel Inprogress images.<br /><br />The flow is like this.<br /><br />1.Once Drag and Drop image, then Upload controller action is firing.<br /><br />2.Image are with Cancel Upload button to cancel Inprogress upload.<br /><br />3.Once you clicked on Cancel Upload button, then Cancel action is firing.<br /><br />4.Here we are using HTTP web Request for file upload(chunk wise).Anonymoushttps://www.blogger.com/profile/05616398087849945770noreply@blogger.comtag:blogger.com,1999:blog-8311385966220793010.post-62014968651227396432014-06-10T13:25:25.391+05:302014-06-10T13:25:25.391+05:30Hi Srinivas,
You can do that one pretty easily by...Hi Srinivas,<br /><br />You can do that one pretty easily by using 'addRemoveLinks' options.If you want to remove all files, simply use .removeAllFiles(). Please check their API for more info : http://www.dropzonejs.com/Anonymoushttps://www.blogger.com/profile/09444146937039539894noreply@blogger.comtag:blogger.com,1999:blog-8311385966220793010.post-77584893086545987452014-06-10T12:50:40.405+05:302014-06-10T12:50:40.405+05:30Have you implemented cancel files also
Have you implemented cancel files also<br /> Anonymoushttps://www.blogger.com/profile/05616398087849945770noreply@blogger.comtag:blogger.com,1999:blog-8311385966220793010.post-90223172326051777992014-05-15T21:52:19.799+05:302014-05-15T21:52:19.799+05:30the link that you provided has MVC implementation ...the link that you provided has MVC implementation too :D :D look here <br />http://buildstarted.com/2011/07/17/asp-net-mvc-3-file-uploads-using-the-fileapi/<br /><br />thanks!!! i'm trying this out, if i need help i'll comment here...Anonymoushttps://www.blogger.com/profile/05386519158746795298noreply@blogger.comtag:blogger.com,1999:blog-8311385966220793010.post-25694154690079294222014-05-15T21:49:33.536+05:302014-05-15T21:49:33.536+05:30thanks alot sampath, i was going through a tutoria...thanks alot sampath, i was going through a tutorial...could you help me out with this please? check it out please... <br />http://sharpbox.codeplex.com/wikipage?title=SharpBox%20Developer%20TutorialsAnonymoushttps://www.blogger.com/profile/05386519158746795298noreply@blogger.comtag:blogger.com,1999:blog-8311385966220793010.post-25840622361135129422014-05-15T19:22:00.677+05:302014-05-15T19:22:00.677+05:30Hi Khlood,
There is no official SDK for .NET with...Hi Khlood,<br /><br />There is no official SDK for .NET with regard to dropbox.But you can use ' HigLabo' library for interaction with the Dropbox.Please read below article for more info.It's for ASP.net web forms.But I hope you can get some knowledge about it and modify it to MVC app.I never try that though. :(<br /><br />Link : http://codingstill.com/2013/11/use-dropbox-with-your-asp-net-application/<br /><br />Good Luck ! :)Anonymoushttps://www.blogger.com/profile/09444146937039539894noreply@blogger.comtag:blogger.com,1999:blog-8311385966220793010.post-55932774175230494912014-05-15T18:35:43.069+05:302014-05-15T18:35:43.069+05:30to dropbox or box.netto dropbox or box.netAnonymoushttps://www.blogger.com/profile/05386519158746795298noreply@blogger.comtag:blogger.com,1999:blog-8311385966220793010.post-30731489557841175052014-05-15T16:50:36.936+05:302014-05-15T16:50:36.936+05:30Hi Khlood ,
Where are you going to store the imag...Hi Khlood ,<br /><br />Where are you going to store the images (i.e database,Azure cloud blob storage or folder etc.) ?Anonymoushttps://www.blogger.com/profile/09444146937039539894noreply@blogger.comtag:blogger.com,1999:blog-8311385966220793010.post-78148549357167261182014-05-15T16:37:01.089+05:302014-05-15T16:37:01.089+05:30i wanted to know the code for storing the image in...i wanted to know the code for storing the image in some URL, a free storage URL...please help...thanksAnonymoushttps://www.blogger.com/profile/05386519158746795298noreply@blogger.comtag:blogger.com,1999:blog-8311385966220793010.post-43367941627222037862014-04-24T16:43:28.365+05:302014-04-24T16:43:28.365+05:30OK. Then that is may be the browser compatibility ...OK. Then that is may be the browser compatibility issue.Please put your bug on SO.<br />http://stackoverflow.com/tags/dropzone.js/hotAnonymoushttps://www.blogger.com/profile/09444146937039539894noreply@blogger.comtag:blogger.com,1999:blog-8311385966220793010.post-40927571806858006912014-04-24T16:38:24.171+05:302014-04-24T16:38:24.171+05:30its working in other browsersits working in other browsersAnonymoushttps://www.blogger.com/profile/17300020140654454714noreply@blogger.comtag:blogger.com,1999:blog-8311385966220793010.post-50718009785161110382014-04-24T16:32:23.344+05:302014-04-24T16:32:23.344+05:30Not IE.I mean other browsers such as Chrome,Firefo...Not IE.I mean other browsers such as Chrome,Firefox etc ..Anonymoushttps://www.blogger.com/profile/09444146937039539894noreply@blogger.comtag:blogger.com,1999:blog-8311385966220793010.post-23256878745346694412014-04-24T16:30:12.162+05:302014-04-24T16:30:12.162+05:30May be or may not be .. i dint check in other IE ...May be or may not be .. i dint check in other IE versions Anonymoushttps://www.blogger.com/profile/17300020140654454714noreply@blogger.com