--this thread is related to the code found here:
http://forums.aspfree.com/code-bank...ures-94647.html
If you're using that code and getting this error:
Code:
Microsoft VBScript runtime (0x800A0005)
Invalid procedure call or argument: 'MidB'
then most chances are that you simply did not add the
proper HTML to your form.
ordinary HTML form looks like this:
Code:
<form action="somepage.asp" method="POST">
however, when uploading files (not only using my code) you
must add extra bit:
Code:
<form action="somepage.asp" method="POST" enctype="multipart/form-data">
see the part in bold? it's
essential, and without it you'll get
errors or the upload will just fail.
technical information: by default, browsers will send the form
data in pure text format. file sent as pure text is not good idea,
because non text files (e.g. images) are built of something
known as "binary data". when adding that bit of HTML, the
browser will send the form data in binary format, which is proper
for sending files.