Code Monkey home page Code Monkey logo

aspnetcorefileuploadfiletable's Introduction

ASP.NET Core 5 MVC file upload / download with MS SQL Server FileTable

https://damienbod.com/2015/12/05/asp-net-5-mvc-6-file-upload-with-ms-sql-server-filetable/

History

2021-02-13 Update Nuget packages

2020-12-05 Update to .NET 5

2020-11-08 Updated Nuget, npm packages

2020-01-10 code clean up

2019-12-21 Updated to .NET Core 3.1

2019-10-05 Updated to .NET Core 3.0

2019-06-16 Updated to .NET Core packages, npm packages, in process hosting

2018-12-05 Updated to .NET Core 2.2

2018-11-22 Updated bootstrap 4, nuget packages, ui build

2018-06-07 Updated to ASP.NET Core 2.1

2018-05-10 Updated to ASP.NET Core 2.1 RC1

2017-03-23 Updated to ASP.NET Core 2.0.6

2017-08-21 Updated to ASP.NET Core 2.0.0

2017-02-10 Updated to VS2017

aspnetcorefileuploadfiletable's People

Contributors

damienbod avatar dependabot[bot] avatar ftenafmar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aspnetcorefileuploadfiletable's Issues

How Does this Use FileTable Since No Data in WebApiUploads?

Hi! I've downloaded your latest update to EF Core 2.1 after reading your blog. However, I don't think this actually works as intended. I was able to make the solution appear to work after a minor change in the UploadFiles method of the FilesUploadController due to Path.Combine seeing the second argument as a full path and then ignoring the first argument:

var fileName = Path.GetFileName(ContentDispositionHeaderValue.Parsefile.ContentDisposition).FileName.ToString().Trim('"'))

What I noticed is that the extension method SaveAsAsync only streams the file to the folder provided in the configuration directly using System.IO. It has nothing to do with SQL Server and FileTable. After loading the file to the directory and being able to download it through the MVC UI, there is no entry however in the WebApiUploads table.

I hope we have a chance to discuss this.

AllUploadedFiles.cs not found

I observed that you added in ViewAllFiles View DataAccess.Model.AllUploadedFiles but in the Model folder there is no file. Could you please add it with all properties used (fileShortDescriptions etc) in your GitHub Code section?
Many thanks
@damienbod

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.