質問編集履歴
2
URLのリンク付け
title
CHANGED
File without changes
|
body
CHANGED
@@ -7,7 +7,8 @@
|
|
7
7
|
アップロードしたファイルをデータベースに保存する機能を実装したいです。
|
8
8
|
前回同様、以下のサイトを参考にほぼそのまま書いているのですが、表題のようなエラーが発生しております。
|
9
9
|
|
10
|
-
https://www.atmarkit.co.jp/fdotnet/dotnettips/939aspmvcfileupload2/aspmvcfileupload2.html
|
10
|
+
[https://www.atmarkit.co.jp/fdotnet/dotnettips/939aspmvcfileupload2/aspmvcfileupload2.html
|
11
|
+
](URL)
|
11
12
|
|
12
13
|
|
13
14
|
### 発生している問題・エラーメッセージ
|
1
Viewファイルのコード修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -28,7 +28,7 @@
|
|
28
28
|
<h2>Index</h2>
|
29
29
|
|
30
30
|
<div>
|
31
|
-
@Using (Html.BeginForm("
|
31
|
+
@Using (Html.BeginForm("DbUpload", "Upload", FormMethod.Post, New With {.enctype = "multipart/form-data"}))
|
32
32
|
@<input type="file" name="fl" size="50" />
|
33
33
|
@<input type="submit" value="送信" />
|
34
34
|
End Using
|