Fixing warning in Orchard.MediaLibrary/Views/ClientStorage/Index.cshtml (LimitConcurrentUploads is a non-nullable int)

This commit is contained in:
Benedek Farkas 2023-05-17 18:33:02 +02:00
parent 05e3c196aa
commit 610b3c4f53

View File

@ -85,7 +85,7 @@
// Add drag-n-drop HTML5 support // Add drag-n-drop HTML5 support
$('#fileupload').fileupload({ $('#fileupload').fileupload({
autoUpload: true, autoUpload: true,
@((settings.LimitConcurrentUploads != null && settings.LimitConcurrentUploads > 0) ? "limitConcurrentUploads:" + settings.LimitConcurrentUploads + "," : "") @((settings.LimitConcurrentUploads > 0) ? "limitConcurrentUploads:" + settings.LimitConcurrentUploads + "," : "")
@if(Model.Replace == null) { @if(Model.Replace == null) {
<text> <text>
url: '@Url.Action("Upload")', url: '@Url.Action("Upload")',