Ok, I'm usually ok posting through director, as nearly every project I've
worked on posts to an asp/php page to get sql data, so basically my
problem isn't there...but file upload is a bit new....
I'm still attempting to do the file upload via director, which isn't
working, but I think it's because I'm not emulating the browser
upload/post correctly in this one case.
I've got the html page working with the cgi, so my setup is right. I've
even gotten a correct return via director post, except the succesful
return claims that no data was sent; take a look - this is the
return/result of the file-upload post:
<HTML>
<HEAD>
<TITLE>Upload Finished</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<H1>Upload Finished</H1>
<P>
You uploaded <B>0</B> files totalling <B></B> total bytes.
Individual
file information is listed below:
<PRE>
</PRE>
<P>
Thank you for using the File Upload! system.
<P>
<HR SIZE=1>
<CENTER><A
HREF="http://www.terminalp.com/scripts/">terminalp.com</A></CENTER>
</BODY>
</HTML>
- notice how it shows a total of 0 files/no bytes?
So WHAT AM I MISSING in the form post data from director? Here's the
mockup:
"http://www.grimmwerks.com/cgi-bin/file-upload.cgi?ENCTYPE=multipart%2fform-dat$
this is the urlencoded string (and notice my diskdrive is Spasmolytic, on
the Desktop folder in the audioresponse folder the target file is
question.mov.
DOH! I think I see it - the mac filepath internal to director is delimed
by ":" - so I'm getting the charcodes for the colon....let me try
something here....
No, same problem/same return, even with the proper link to the file
(file:///Spasmolytic/Desktop%20Folder/audioresponse/question.mov) I get
that I successfully uploaded 0 files of 0 bytes....
Am I not emulating something properly that the form does?
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]