Email conversation
From | Frederick |
To | Me |
Subject | XMLHttpRequest + enctype=multipart/form-data +local |
Date | 2 May 2005 15:46 |
Hi,
I like your XML import script.
Now I was wondering, on how I can import XML File from my local disk, no
serverside possible.
Can I do something like this:
<form method="POST" enctype="multipart/form-data" action="">
<input type="file" name="XMLFile">
<input type="submit" value="import name="imp">
</form>
Is there a solution importing local XML Files? I already read your
E-Mails, but didn't find anything I could use.
It will be fine, if it only works wit IE >5.0
Thank you for any suggestion
Frederick
From | Me |
To | Frederick |
Subject | Re: XMLHttpRequest + enctype=multipart/form-data +local |
Date | 2 May 2005 17:52 |
Frederick,
> Now I was wondering, on how I can import XML File from my local disk, no
> serverside possible.
Pages run from your own disk are allowed to import files from your disk, and
they can use my script to do that just like it can import from a server (it
cannot be done with a form), or alternatively, they could also use ActiveX
to load and parse the file. Web pages run from remote servers are not
allowed to read files from your local disk.
Note that IE 6 XP SP 2 has taken a bizzare line on security, and will not
allow scripts to run in locally stored pages unless you specifically
re-enable it for every page.
Mark 'Tarquin' Wilton-Jones - author of http://www.howtocreate.co.uk/