Refactored upload.jsp