Re: [PHP] Binary data in $_POST, not in $_FILES, why?

2008-06-16 Thread Daniel Brown
On Mon, Jun 16, 2008 at 11:14 AM, Jim Feniello [EMAIL PROTECTED] wrote:
 Hi,

 What would cause php to not put it in _files?  The obvious is the
 multipart/form-data but i've confirmed that.  Anything else i can look into?

What does the line for the file input in the HTML source say?  Can
you provide the whole snippet of code from the form section, starting
with form  and ending with /form ?

-- 
/Daniel P. Brown
Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just
$59.99/mo. with no contract!
Dedicated servers, VPS, and hosting from $2.50/mo.

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



RE: [PHP] Binary data in $_POST, not in $_FILES, why?

2008-06-16 Thread Jim Feniello
I can't because it's a third party provider with a voicexml browser.  The
best I have is this log from apache mod_security:

POST /temp/save2.php HTTP/1.1
Accept: */*
Host: recording.repsstudio.com
User-Agent: HVP/4.2
Content-Length: 37486
Content-Type: multipart/form-data; boundary=osb_inet_multipart_boundary

37486
--osb_inet_multipart_boundary
Content-Disposition: form-data; name=dnis

1a
--osb_inet_multipart_boundary
Content-Disposition: form-data; name=resp
Content-Type: audio/x-wav
Content-Length: 37050

RIFF±gÿÿWAVEfmt
[EMAIL PROTECTED]@[EMAIL PROTECTED]@^A^@@[EMAIL PROTECTED]@@[EMAIL 
PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL 
PROTECTED]
ýýþ|{yxyz{ùúþþöýy{xz{xzzzutvx{{x|z|ÿÿüúúûúûûûûüûûøü
ýûúûüýþ~}ÿ}}ÿ~ú÷ûüÃ*^Ã^æ'#Õ»(^V+^Ã^Ã^Ã^Ztnosx{}üúûýú
úùû}þýþüü}ú÷ôóùøû$
^S«^Ã^ÃB9¯¨,^O^T®^Ã^ÃÃ^N^O7^çCH ^ÃÃ^P
#^Ã^Ã^Ã2.K3(-BèWáp]çôëwèïqïÃ\Ã~þ|Ã¥vôvéyüæôjÃ]Ãíkòýuqë
nîõwWÃWîTàh÷ráìeäaæh[Ã\QÃZbú{küþ~Ã[lâIð^]fmvlázÃUÃÃ^ÃÃ[Ã÷luÃ
§Ã»Ã¾ÃµÃ¤Ã¥ÃþîÃ_mäj$
--osb_inet_multipart_boundary
Content-Disposition: form-data; name=usercode

3a
--osb_inet_multipart_boundary
Content-Disposition: form-data; name=userexerciseid

2a vxml version
--osb_inet_multipart_boundary--




RE: [PHP] Binary data in $_POST, not in $_FILES, why?

2008-06-16 Thread Jim Feniello
Anyone know if PHP keys off the content-disposition for form pre-processing
to populate the $_FILES array?
In my html form example, the raw data looks like:
Content-Disposition: form-data; name=resp; filename=tada.wav
Content-Type: audio/x-wav

But the form posting from the voicexml browser/server looks like:

Content-Disposition: form-data; name=recording
Content-Type: audio/x-wav

That's the only difference I have found so far, so I was wondering if php
parses form elements that have the filename attribute on the
Content-Disposition item.  The bad side of that is that from what I can
tell, Content-Disposition isn't a standard/requirement, just an RFC.

Thanks,
-jim





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



RE: [PHP] Binary data in $_POST, not in $_FILES, why?

2008-06-16 Thread Kirk . Johnson
Jim Feniello [EMAIL PROTECTED] wrote on 06/16/2008 03:16:02 PM:

 Anyone know if PHP keys off the content-disposition for form 
pre-processing
 to populate the $_FILES array?

I believe that the $_FILES array is only populated when the form tag 
contains 'enctype=multipart/form-data' and there is an input field of 
type file in the form, but I am not going to guarantee that ;)

Kirk


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