Browse Source

Image form file limit stated

Andrew Grant 2 months ago
parent
commit
1146daf99c

+ 2 - 1
src/main/resources/application.properties

@@ -2,5 +2,6 @@ spring.application.name=grants
 server.port=8086
 server.servlet.context-path=/grants
 spring.mvc.format.date=dd-MM-yyyy
-spring.profiles.active=dev
+spring.profiles.active=uat
 logging.level.scot.carricksoftware=trace
+

+ 2 - 1
src/main/resources/templates/images/image/form.html

@@ -69,7 +69,7 @@
             </tr>
             <tr>
                 <td  style="text-align: right;">
-                    <label for="file">File to upload :&nbsp;</label>
+                    <label for="file"> <span style="color: rgb(255,0,0);">! </span>File to upload :&nbsp;</label>
                 </td>
                 <td style="text-align: left;">
                     <input type="file" name="file" id = "file"/>
@@ -89,6 +89,7 @@
         <a class="btn btn-secondary" th:href="@{/images}" th:text="${'List all'}">List all</a>
         <a class="btn btn-success" th:href="@{/}" th:text="${'Home'}">Home</a>
         <h6><span style="color: rgb(255,0,0);">*</span><span> Cannot be edited</span></h6>
+        <h6><span style="color: rgb(255,0,0);">!</span><span> 1 MByte limit</span></h6>
     </form>
 </div>