Skip to content

Commit 9bed870

Browse files
committed
csrf in upload file html
1 parent 4a02175 commit 9bed870

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/resources/templates/upload.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<h3>file upload</h3>
66

7-
<form method="POST" action="upload" enctype="multipart/form-data">
7+
<form method="POST" th:action="upload" enctype="multipart/form-data">
88
<input type="file" name="file" /><br/><br/>
99
<input type="submit" value="Submit" />
1010
</form>

src/main/resources/templates/uploadPic.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<h3>file upload only picture</h3>
66

7-
<form method="POST" action="upload/picture" enctype="multipart/form-data">
7+
<form method="POST" th:action="@{upload/picture}" enctype="multipart/form-data">
88
<input type="file" name="file" /><br/><br/>
99
<input type="submit" value="Submit" />
1010
</form>

0 commit comments

Comments
 (0)