Re: [PHP] handling file upload (OT not exactly PHP)

2005-04-20 Thread John Nichel
Saswat Praharaj wrote:
Hello , 

Need to do handle a file upload done via http POST.
I can read the content length and from POST and get the contents.
But, how do I get the exact file ?? 

Eg. suppose for  uploading a .doc file I could see that it sends the
font type and other parameters also..
I am not sure how does it will matter when I am extracting the exact
file from the POST request .
Again, how would I extract the exact file ??
Would appreciate any pointers or someone giving me some headstart .
RTFM
http://us4.php.net/manual/en/features.file-upload.php
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] handling file upload (OT not exactly PHP)

2005-04-20 Thread Prathaban Mookiah
Did you try using the $_FILES superglobal?




-- Original Message ---
From: Saswat Praharaj <[EMAIL PROTECTED]>
To: 
Sent: Wed, 20 Apr 2005 18:26:14 +0530
Subject: [PHP] handling file upload (OT not exactly PHP)

> Hello ,
> 
> Need to do handle a file upload done via http POST.
> 
> I can read the content length and from POST and get the contents.
> But, how do I get the exact file ??
> 
> Eg. suppose for  uploading a .doc file I could see that it sends the
> font type and other parameters also..
> 
> I am not sure how does it will matter when I am extracting the exact
> file from the POST request .
> 
> Again, how would I extract the exact file ??
> 
> Would appreciate any pointers or someone giving me some headstart .
> 
> Thanks and Regards,
> -Saswat
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End of Original Message ---

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] handling file upload (OT not exactly PHP)

2005-04-20 Thread Jay Blanchard
[snip]
Need to do handle a file upload done via http POST.

I can read the content length and from POST and get the contents.
But, how do I get the exact file ?? 

Eg. suppose for  uploading a .doc file I could see that it sends the
font type and other parameters also..

I am not sure how does it will matter when I am extracting the exact
file from the POST request .

Again, how would I extract the exact file ??
[/snip]

Have you read all of this ->
http://us3.php.net/manual/en/features.file-upload.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] handling file upload (OT not exactly PHP)

2005-04-20 Thread Saswat Praharaj
Hello , 

Need to do handle a file upload done via http POST.

I can read the content length and from POST and get the contents.
But, how do I get the exact file ?? 

Eg. suppose for  uploading a .doc file I could see that it sends the
font type and other parameters also..

I am not sure how does it will matter when I am extracting the exact
file from the POST request .

Again, how would I extract the exact file ??

Would appreciate any pointers or someone giving me some headstart .

Thanks and Regards,
-Saswat

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php