GithubHelp home page GithubHelp logo

pedroinfo / uploadfile Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 845 KB

Solution with some examples of uploading and storing files (disk or database) with ASP.NET MVC, Windows Forms, SQL Server, LiteDB and MongoDB.

C# 50.19% HTML 42.26% CSS 6.46% JavaScript 1.09%
file-upload asp-net-core mongodb sql-server

uploadfile's Introduction

.NET file upload examples


In the projects we work on, a very common situation is to store files. Many organizations use a database for this and store it in column of bytes. Others use file systems and in other cases more modern technologies like amazon's S3.

In this repository my idea is to put some possible situations to solve this challenge.

  • Store files in Database (SQL Server + EF CORE). Do you need to upload files to the database? Dont do this. But if you want to do it, this is a small example.

  • Store files in FileSystem

  • Upload of files using ajax

  • Upload of files using a progress bar

  • Upload of files using a Desktop Application with StoredProcedures(Windows Forms). I hate stored procedures in general, but sometimes we need use.

  • Store Files using LiteDB :)

  • Upload files to a WebApi

  • Store files in MongoDB

in progress...

Feel free to comment the code or send me any suggestions.

uploadfile's People

Contributors

pedroinfo avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

uploadfile's Issues

Compression

  • Compression before send files to database.

  • Decompressing files when downloading from server.

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.