On Wed,  7 Feb 2001 13:58, David Robley wrote:
> On Wed,  7 Feb 2001 13:42, Shane McBride wrote:
> > > How can I ensure that a file is transferred in ascii mode using the
> >
> > following: <form enctype="multipart/form-data" method="post"
> > action="do_upload.php">
> >
> > <p><strong>File to Upload:</strong><br>
> > <input type="file" name="img1" size="30"></p>
> > emplresults.txt<input type="radio" name="file_type"
> > value="emplresults">&nbsp; applresults.txt<input type="radio"
> > name="file_type" value="applresults"> <P><input type="submit"
> > name="submit" value="Upload File"></p>
> >
> > </form>
> >
> > I think it may be how you specify the enctype?
> >
> > - Shane
>
> A quick search turned up this URL:
>
> http://www.w3.org/TR/REC-html40/interact/forms.html
>
> which seems like a good start point - I'm going to peruse it myself and
> see what I come up with....

Following up to myself, it seems that the defined standard for line 
separators is CR/LF - from the document at the above URL: 

"As with all MIME transmissions, "CR LF" (i.e., `%0D%0A') is used to 
separate lines of data."

So if your problem is related to the end of line characters, you might want 
to run something on the server that does an EOL conversion as part of the 
upload process.

-- 
David Robley                        | WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
AusEinet                            | http://auseinet.flinders.edu.au/
            Flinders University, ADELAIDE, SOUTH AUSTRALIA

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to