ID:          14298
 Updated by:  [EMAIL PROTECTED]
 Reported By: [EMAIL PROTECTED]
 Status:      Analyzed
 Bug Type:    HTTP related
 PHP Version: 4.0.6
 Assigned To: zak
 New Comment:

Just wanted to drop a note about a test I've done:

I tried a simple perl script getting the PUT file and it worked.

Calling the same script through PHP yields "no file" meaning that PHP
does something the uploaded file since the perlscript used by itself
works and then called through PHP does'nt.


Previous Comments:
------------------------------------------------------------------------

[2002-05-09 07:55:50] [EMAIL PROTECTED]

If you find the temporary file variable I would be much obliged if you
could drop me a line.

BTW I was thinking would'nt it be better to have the PUT values in the
superglobal $_FILES ? Or at least in a $HTTP_PUT_FILE var.

A possible solution could be something like the following:

$HTTP_PUT_FILE['request_uri']
Path of the proposed upload like /mytest/filename.htm

$HTTP_PUT_FILE['path_translated']
The full path of the proposed upload like
/usr/home/foo/bar/public_html/mytest/filename.htm

$HTTP_PUT_FILE['size']
The size, in bytes, of the uploaded file. 

$HTTP_PUT_FILE['tmp_name']
Temp name something like /tmp/hfdhjfufd8733

My only bad is that I cant program in C otherwise I would have been
there doing it already.

------------------------------------------------------------------------

[2002-05-08 09:44:42] [EMAIL PROTECTED]

Current status on this is that I ignored it for a while - 
I am taking a look at it again.


------------------------------------------------------------------------

[2002-05-03 12:15:39] [EMAIL PROTECTED]

Whats happening on this subject?

------------------------------------------------------------------------

[2001-12-02 01:32:31] [EMAIL PROTECTED]

Thanks for the report - I am checking into it.

--zak


------------------------------------------------------------------------

[2001-11-30 10:33:31] [EMAIL PROTECTED]

Document:
        features.file-upload.put-method.html
SAYS:
        The filename of this temporary file is in the
        $PHP_PUT_FILENAME variable
SAYS:
        copy(
                $PHP_UPLOADED_FILE_NAME,
                $DOCUMENT_ROOT.$REQUEST_URI
        );

Neither works. What does?

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=14298&edit=1

Reply via email to