Click here to Skip to main content
15,906,708 members
Please Sign up or sign in to vote.
3.50/5 (2 votes)
See more:
Hi Everybody!

In brief, I am trying to POST the IEnumerable <HttpPostedFileBase> from view to controller action. And then start uploading process while notifying to user which file (file_name) in being uploaded. sample code will be more appreciated.

Please help me.......... THANKS in advance
Posted

Your task can be done easily with the DropzoneJS.

What is DropzoneJS ?

DropzoneJS is an open source library that provides drag'n'drop file uploads with image previews.

I have written an article about this.Please read it for more info.

DropzoneJS with ASP.net MVC

DropzoneJs Home

I hope this will help to you. :)
 
Share this answer
 
 
Share this answer
 
Comments
suzand 9-Mar-14 1:13am    
Thanks everybody!!! I've tried to use DropzoneJs but for the lack of knowledge it is hard to update as my requirements. As I'm new in this track.

<div style="padding:10px">
<input type="file" name="files" id="file" multiple="multiple" />
</div>
<div id="progressPanel" style=" overflow:auto; float:left">
<div style="float:left;padding:10px">
<input type="submit" name="Upload" value="Upload" />
</div>

when i click on submit button, uploading process will continue and then which image is being uploaded is shown(image name) on UI.
like: 2 of 15 (image_name.jpeg uploading....)

Thanks again everybody...............
Thanks everybody!!! I've tried to use DropzoneJs but for the lack of knowledge it is hard to update as my requirements. As I'm new in this track.
XML
<div style="padding:10px">
                    <input type="file" name="files" id="file" multiple="multiple" />
                </div>
                <div id="progressPanel" style=" overflow:auto; float:left">
                <div style="float:left;padding:10px">
                    <input type="submit" name="Upload" value="Upload" />
                </div>

when i click on submit button, uploading process will continue and then which image is being uploaded is shown(image name) on UI.
like: 2 of 15 (image_name.jpeg uploading....)

Thanks again everybody...............
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900