prevent the occurrence of internal server error while adding a bitstream to an item if the upload button is pressed without selecting a file

This commit is contained in:
Marsa Haoua
2016-04-21 15:36:51 +02:00
parent 38791e705f
commit 2436c6bd65
2 changed files with 2 additions and 1 deletions

View File

@@ -1474,6 +1474,7 @@ jsp.tools.move-item.inheritpolicies = Inherit defaul
jsp.tools.upload-bitstream.info = Select the bitstream to upload
jsp.tools.upload-bitstream.title = Upload Bitstream
jsp.tools.upload-bitstream.upload = Upload
jsp.tools.upload-bitstream.select.file.msg = No file has been selected
jsp.workspace.ws-error.errormsg1 = The system was unable to process your request correctly. You must specify an item.
jsp.workspace.ws-error.errormsg2 = Go back to "My DSpace", and select "Open" for the WorkSpace Item that you wish to work with. If you are still experiencing problems please do not hesitate to contact us and we will do our best to solve the problem.
jsp.workspace.ws-error.heading = Error - Workspace Item

View File

@@ -43,7 +43,7 @@
<form method="post" enctype="multipart/form-data" action="">
<div class="container row">
<input class="form-control" type="file" size="40" name="file"/>
<input required="<fmt:message key="jsp.tools.upload-bitstream.select.file.msg"/>" class="form-control" type="file" size="40" name="file"/>
</div>
<input type="hidden" name="item_id" value="<%= item.getID() %>"/>