Bonjour ,

j'aimerai récupérer un fichier de mon ordinateur ,
voilà le code sur lequel je travaille :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Command</title>
<style>
<!--
.text
{
background-color:white;
color:#413C3C;
        -moz-border-radius: 30px;
        -webkit-border-radius: 0px;
        border-radius:5px;
                width:80%;
                margin-top: 0%;
                margin-bottom: 2%;
                margin-left:0%;
                margin-right:0%;
}
.text:hover
{
background-color: #FFD9DF;
}
-->
</style>
</head>
<body>
<%@  include file="index.html"%>
<%@ include file="date.jsp" %>
<%@ include file="Deconnexion.jsp" %>
<form action="mainZipInsertAll1" method="post">
	<div style="position: absolute; top: 200px; right:510px">
	<table align="center"style="color:#413C3C">
 
     <tr><th><h2>Insert your File!!</h2></th></tr><tr></tr>
     <tr><th><img src="insert_file.jpg" width="140" height="90"></img></th></tr>
     <tr><th><hr color="#413C3C"></th></tr>
     <tr><th><label for="mon_fichier">File (all formats | max. 1 Mo) :</label></th></tr>
     <tr><th><input type="file" name="MAX_FILE_SIZE" value="file11" class="text" style="width:20em"/></th></tr>
 
         <tr align="center"><td>
             <input type="submit" name="submit" value="Insert" style="width:7em; height:2em"/>
              <input type="reset" name="reset" value="Reset" style="width:7em; height:2em"/>
         </td></tr>
     </table>     
</div>
</form>
 
 
</html>

le problème c'est que je récupère juste le nom du fichier et non pas le chemin
est ce que vous pouvez m'aidez ?

une autre chose comment contrôler la taille du fichier ?
par exemple si je récupère un fichier d'une taille important je déclenche un message d’erreur

et Merci d'avance