Code Monkey home page Code Monkey logo

mvcfileuploader's Introduction

MvcFileUploader

A nuget package for easy blueimp JQuery file upload plugin integration into an ASP.NET Mvc application

Utilises: * jQuery File Upload plugin
* twitter bootstrap for javascript for modal dialog load from ajax

MvcFileUploader Provides Html helper and file saving utility to keep your code clean

Features: * The frontend view gets included into the project. So provides full control to design. * Configure filetypes, filesize, returnUrl when closing the dialog and Upload action

Usage scenario

For just a single file upload as part of some form submission, this is not recommended. It might be useful when multiple file upload is required with ajax and server side needs some custom logic to implement.

Typically in any ASP.NET mvc application when creating or updating an entity object, often the requirement is to upload a number of files and associate them with that entity. We may also want to save some entries for the file being uploaded.

To achieve this we typically download some javascript plugin, setup css, js into our project for integrating that plugin into the view. And in the server we typically need to implement action methods according to the plugin doc to make it work seamlessly. In upload actions we typically save the uploaded file details in some entities and associate them with some other entities and save them as well.

This nuget package sets you up with those plumbing and keeps you DRY with Html helpers and a FileSaver utility class.

The demo Mvc web app shows how to add custom code to generate thumbnail url(using ImageResizer http module) and pass custom entityId for saving your associations.

mvcfileuploader's People

Contributors

marufbd avatar

Watchers

Masoud Abedi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.