Hi all,
I developed the following codes to implement the concept of Multiple file Uploading Process.
Actually my goal in this implementation is to uploads the files onto the server and i have to show the status of each and every file to the end user while uploading.
In other words, when the first file is start for uploading, means to show the status as "Processing ..."
After the first file is uploaded onto the server means to show the status as "Uploading Successfull..." .
This above said process is repeated for each and every file.
This coding is working fine for uploading files but it doesn't show the status individually instead it shows at last together as "Uploading Successfull..." in each iframes.
Note:- Here i was used to Upload 3 Files, Any way it comes under Multiple file uploading....
I don't know why this is not producing correct output. So, kindly help me to solve the above said problem for producig correct output.
If you have other concept to implement this concept means tell me your view also for me..........
Coding Section:-
<html>
<head>
<title>Multip le File Uploads</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<table border="0" align="left" width="100%" cellpadding="0" cellspacing="0" >
<td>
<form method="post" enctype="multip art/form-data" action="">
<table border="0" align="center" width="60%" cellpadding="0" cellspacing="0" >
<tr>
<td colspan="3" align="center"> <strong>FILE UPLOAD</strong></td>
</tr>
<tr>
<td width="20%"><st rong>File 1:</strong></td>
<td width="20%"><in put type="file" name="File_Up[]"></td>
<td width="60%"><if rame frameborder="0" scrolling="no" id="StatFile_1 " name="StatFile_ 1" height="40" ></iframe></td>
</tr>
<tr>
<td width="20%"><st rong>File 2:</strong></td>
<td width="20%"><in put type="file" name="File_Up[]"></td>
<td width="60%"><if rame frameborder="0" scrolling="no" id="StatFile_2 " name="StatFile_ 2" height="40" ></iframe></td>
</tr>
<tr>
<td width="20%"><st rong>File 3:</strong></td>
<td width="20%"><in put type="file" name="File_Up[]"></td>
<td width="60%"><if rame frameborder="0" scrolling="no" id="StatFile_3 " name="StatFile_ 3" height="40" ></iframe></td>
</tr>
<tr>
<td></td>
<td align="right">< input type="submit" name="submit" value="Attach"> </td>
<td></td>
</tr>
</table>
</form>
</td>
</table>
<?
if ( $_POST['submit'] == 'Attach' )
{
?>
<script> var start=1; </script>
<?
for ( $i=0; $i<3; $i++ )
{
?>
<script>
var source="StatFil e_"+start;
win=open("Prog. php",source);
</script>
<?
if ( is_uploaded_fil e($_FILES['File_Up']['tmp_name'][$i]))
{
if( copy( $_FILES['File_Up']['tmp_name'][$i],"Uploads/".$_FILES['File_Up']['name'][$i]) )
{
?>
<script>
win1=open("Comp .php",source);
start++;
</script>
<?
}
}
}
}
?>
</body>
</html>
Note:- Here Prog.php for Printing message as "Progressing... "
Comp.php for Printing message as "Uploading Successfull.... "
With Regards,
Velmurugan.H
I developed the following codes to implement the concept of Multiple file Uploading Process.
Actually my goal in this implementation is to uploads the files onto the server and i have to show the status of each and every file to the end user while uploading.
In other words, when the first file is start for uploading, means to show the status as "Processing ..."
After the first file is uploaded onto the server means to show the status as "Uploading Successfull..." .
This above said process is repeated for each and every file.
This coding is working fine for uploading files but it doesn't show the status individually instead it shows at last together as "Uploading Successfull..." in each iframes.
Note:- Here i was used to Upload 3 Files, Any way it comes under Multiple file uploading....
I don't know why this is not producing correct output. So, kindly help me to solve the above said problem for producig correct output.
If you have other concept to implement this concept means tell me your view also for me..........
Coding Section:-
<html>
<head>
<title>Multip le File Uploads</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<table border="0" align="left" width="100%" cellpadding="0" cellspacing="0" >
<td>
<form method="post" enctype="multip art/form-data" action="">
<table border="0" align="center" width="60%" cellpadding="0" cellspacing="0" >
<tr>
<td colspan="3" align="center"> <strong>FILE UPLOAD</strong></td>
</tr>
<tr>
<td width="20%"><st rong>File 1:</strong></td>
<td width="20%"><in put type="file" name="File_Up[]"></td>
<td width="60%"><if rame frameborder="0" scrolling="no" id="StatFile_1 " name="StatFile_ 1" height="40" ></iframe></td>
</tr>
<tr>
<td width="20%"><st rong>File 2:</strong></td>
<td width="20%"><in put type="file" name="File_Up[]"></td>
<td width="60%"><if rame frameborder="0" scrolling="no" id="StatFile_2 " name="StatFile_ 2" height="40" ></iframe></td>
</tr>
<tr>
<td width="20%"><st rong>File 3:</strong></td>
<td width="20%"><in put type="file" name="File_Up[]"></td>
<td width="60%"><if rame frameborder="0" scrolling="no" id="StatFile_3 " name="StatFile_ 3" height="40" ></iframe></td>
</tr>
<tr>
<td></td>
<td align="right">< input type="submit" name="submit" value="Attach"> </td>
<td></td>
</tr>
</table>
</form>
</td>
</table>
<?
if ( $_POST['submit'] == 'Attach' )
{
?>
<script> var start=1; </script>
<?
for ( $i=0; $i<3; $i++ )
{
?>
<script>
var source="StatFil e_"+start;
win=open("Prog. php",source);
</script>
<?
if ( is_uploaded_fil e($_FILES['File_Up']['tmp_name'][$i]))
{
if( copy( $_FILES['File_Up']['tmp_name'][$i],"Uploads/".$_FILES['File_Up']['name'][$i]) )
{
?>
<script>
win1=open("Comp .php",source);
start++;
</script>
<?
}
}
}
}
?>
</body>
</html>
Note:- Here Prog.php for Printing message as "Progressing... "
Comp.php for Printing message as "Uploading Successfull.... "
With Regards,
Velmurugan.H
Comment