@@ -77,6 +77,8 @@ public class ImageFormControllerImpl implements ImageFormController {
var z = imageCommand;
var x = file;
int debug = -1;
+ imageCommand.setFileName(file.getOriginalFilename());
+
imageCommandValidator.validate(imageCommand, bindingResult);
@@ -66,9 +66,11 @@
</td>
</tr>
<tr>
- <td>File to upload:</td>
- <td>
- <input type="file" name="file" />
+ <td style="text-align: right;">
+ <label for="file">File to upload : </label>
+ </td>
+ <td style="text-align: left;">
+ <input type="file" name="file" id = "file"/>