|
Posted by Manish on 11/14/06 04:32
I have tried uploading a file using the code as
//--------------------------------------------------------
// Main File
<form action="importaction.php" enctype="multipart/form-data"
method="post" target="targetupload">
<input type="file" name="fileimpcsv" id="fileimpcsv">
<input type="submit" name="subfileimpcsv" id="subfileimpcsv"
value="Import">
</form>
<iframe id='targetupload' name='targetupload' scrolling="auto"
frameborder="0" height="0"
src='ifimportaction.php'></iframe>
//--------------------------------------------------------
In the file ifimportaction.php, there is the code to get the POST,
FILES vars and upload the file.
And show the javascript alert after the file is uploaded. (Alert
message at the end of the file ifimportaction.php)
It's working perfectly for Firefox (tested in v2.0). But for IE (v6),
it's not working.
After I click the submit button, it's stay there only. If I remove all
the code from the ifimportaction.php and only print time(), (after
changing targetupload height to say 50), there is no change in the
values being displayed i.e., action is not going to that frame.
How can I upload the file in IE, so that page is not reloaded.
Navigation:
[Reply to this message]
|