-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement DropZone for Mult Image Upload
- Loading branch information
Rebwar Hosain Poori
authored and
Rebwar Hosain Poori
committed
May 8, 2019
1 parent
2310197
commit e2be40a
Showing
39 changed files
with
3,830 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...igrations/13980217154348_init.Designer.cs → ...igrations/20190508030737_init.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
@model HelpDesk.Domain.Core.Articles.Article | ||
@{ | ||
ViewData["Title"] = "Upload"; | ||
Layout = "~/Views/Admin/_Layout.cshtml"; | ||
} | ||
@section text_editor | ||
{ | ||
<link href="~/vendor/dropzone/dropzone.min.css" rel="stylesheet" /> | ||
<script src="~/vendor/dropzone/dropzone.min.js"></script> | ||
} | ||
<section class="content-header"> | ||
<h1> | ||
<small>ساخت حالت سه بعدی عکس</small> | ||
</h1> | ||
<ol class="breadcrumb"> | ||
<li><a asp-action="Index" asp-controller="Admin"><i class="fa fa-dashboard"></i> داشبورد</a></li> | ||
</ol> | ||
</section> | ||
|
||
<section class="content"> | ||
<div class="row"> | ||
<div class="col-md-9"> | ||
<div class="box box-primary"> | ||
<div class="box-header with-border"> | ||
<h3 class="box-title"> درج عکس جهت ساخت حالت سه بعدی برای</h3> | ||
<h4 class="box-title"> @Model.Title</h4> | ||
</div> | ||
<div class="box-body"> | ||
<div class="form-group"> | ||
<div id="dropzone"> | ||
<form action="/Admin/Upload" class="dropzone needsclick dz-clickable" id="uploader"> | ||
<div class="dz-message needsclick"> | ||
جهت آپلود دسته ای ، عکسها را اینجا درگ کنید یا کلیک کنید<br> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
@section Tiny_Mce | ||
{ | ||
<script> | ||
$(document).ready(function () { | ||
Dropzone.options.uploader = { | ||
paramName: "file", | ||
maxFiles: 3, | ||
maxFilesize: 2, | ||
accept: function (file, done) { | ||
if (file.name == "test.jpg") { | ||
alert("Can't upload a test file."); | ||
} | ||
else { | ||
} | ||
} | ||
}; | ||
}); | ||
</script> | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,4 +52,5 @@ | |
</body> | ||
@RenderSection("Tiny_Mce", false) | ||
|
||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.