{"id":25746303,"url":"https://github.com/vndevpro/dropzonemvc","last_synced_at":"2025-10-04T06:05:04.315Z","repository":{"id":144199703,"uuid":"77731691","full_name":"vndevpro/DropzoneMvc","owner":"vndevpro","description":"An easy file upload handler in ASP.NET MVC with DropzoneJS","archived":false,"fork":false,"pushed_at":"2023-10-27T14:39:05.000Z","size":8087,"stargazers_count":9,"open_issues_count":2,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-12T00:41:30.329Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vndevpro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-31T08:15:32.000Z","updated_at":"2023-10-26T14:30:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"546b098f-48c4-40a4-ab20-7619debd3781","html_url":"https://github.com/vndevpro/DropzoneMvc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vndevpro%2FDropzoneMvc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vndevpro%2FDropzoneMvc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vndevpro%2FDropzoneMvc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vndevpro%2FDropzoneMvc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vndevpro","download_url":"https://codeload.github.com/vndevpro/DropzoneMvc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253655919,"owners_count":21943072,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-26T11:30:52.884Z","updated_at":"2025-10-04T06:05:04.234Z","avatar_url":"https://github.com/vndevpro.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DropzoneMvc\r\nMVC controller and file upload handling in ASP.NET MVC\r\n(https://www.nuget.org/packages/DropzoneMvc/)\r\n\r\n# Steps to install it on your MVC App\r\n\r\n1. Put into web.config the below keys in AppSettings (this will be used by DropzoneAttachmentController)\r\n\r\n```\r\n    \u003c!--A place to hold all temporary files--\u003e\r\n    \u003cadd key=\"TempFilesRoot\" value=\"~/App_Data/TempFiles\" /\u003e\r\n```\r\n    \r\n2. Install the package into your app:\r\n\r\n    Install-Package DropzoneMvc\r\n  \r\n3. In your view (the form) add the following\r\n\r\n    @{\r\n        Html.RenderAction(\"GetComponent\", \"DropzoneAttachment\", new { referenceId = Model.Id });\r\n    }\r\n    \r\n4. In POST action of the controller\r\n\r\n    var tempFilesFolder = Server.MapPath(ConfigurationManager.AppSettings[\"TempFilesRoot\"]);\r\n    var files = new DropzoneMonitor(Request).GetActiveUploadedFiles(tempFilesFolder);\r\n    // file will be the full path minis the TempFilesRoot\r\n\r\nNow you get all the files, just save them as your logic requires.\r\n\r\nPlease check some notes below:\r\n\r\n/!\\ JQuery must be configured \u0026 put in head tag\r\n\r\n/!\\ Dropzone js and css bundles must be declared (in BundleConfig.cs file) -\u003e these bundles will be referenced by the view _DropzoneComponent.cshtml (in **DropzoneMvcDemo\\Views\\Shared**)\r\n\r\n/!\\ You must have to config an IoC for IDropzoneAttachmentSecurityCheck =\u003e Check the demo setup with SimpleInjector\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvndevpro%2Fdropzonemvc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvndevpro%2Fdropzonemvc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvndevpro%2Fdropzonemvc/lists"}