asp.net でGitHubからのブートストラップ ファイル入力を実装しようとしています。
以下は私の.aspcファイルコードです
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<link href="Content/bootstrap.min.css" rel="stylesheet" />
<script src="Scripts/bootstrap.min.js"></script>
<script src="bootstrap-fileinput/js/fileinput.js"></script>
<link href="bootstrap-fileinput/css/fileinput.css" rel="stylesheet" />
<title></title>
<script>
$("#input-id").fileinput({
'showUpload': false,
'maxFileCount': 5,
'showPreview': false,
'mainClass': "input-group-lg"
});
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<input id="input-id" type="file" class="file-loading" multiple>
</div>
</form>
</body>
</html>
できます。しかし、私はそれをカスタマイズする必要があります。
- ファイルをプレビューしたくない ('showPreview': false)
- アップロード ボタンを表示したくない ('showUpload': false)
- ファイル数を制限したい ('maxFileCount': 5)
カスタマイズに必要なプラグインを使用しました。
それでも、デフォルトのプレビュー/出力が得られます。
誰かがこれを手伝ってくれますか?
ご協力いただきありがとうございます。