Change/hide upload directory
Posted: Sat Oct 27, 2012 1:42 pm
Hi hakko, which source code should I modify if I wanted to change the default upload directory or hide it to prevent user from specifying the path? I would like all uploaded file to be consolidate to ONE single folder. So user should not be able to view or change the path.
My temporary workaround is just prevent user from changing the upload directory by adding the 'readonly' field. I try to remove the whole code below but the Upload button say no input.
My temporary workaround is just prevent user from changing the upload directory by adding the 'readonly' field. I try to remove the whole code below but the Upload button say no input.
- Code: Select all
<tr>
<td><fmt:message key="more.upload.target"/></td>
<td><input type="text" id="dir" name="dir" size="37" value="${model.uploadDirectory}" readonly="readonly"/></td>
<td><input type="submit" value="<fmt:message key="more.upload.ok"/>"/></td>
</tr>