Not able to access full location address in mozila and crome !!

Morningdot Hablu

Morningdot Hablu

@morningdot-6Xuj4M Oct 25, 2024
Hello guys,
Check these codes....
<%@ page import="java.io.*"%>
<%
String path=request.getParameter("t1");
%>
<h1><%=path%></h1>
<html>
<center>
Brouse your file
</center>
<head>
<body bgcolor="yellow">
<form action="upload1.jsp">
Image<input type="file" name="t1" accept="image/gif,image/png">
<input type="submit">
</form>
</body>
</head>
</html>
Actually the second program is for Browse the file and then submit the file location to upload1.jsp.
And the first program is for displaying the location of that file.
But the problem is that it will work fine with IE(Show the full location address of a file).But when i try to do this with mozila and chrome it will show only file name.
Can any one help me to solve this issue.
😡

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform