ID:               16353
 Comment by:       comelon33 at hotmail dot com
 Reported By:      cindy_walker at dot dot ca dot gov
 Status:           No Feedback
 Bug Type:         HTTP related
 Operating System: Irix 6.5
 PHP Version:      4.2.0
 New Comment:

first ,my Englist is poor,
I find if I change the files's subfilename to *.doc or *.txt at
computer,then I can upload the files.
but if I change the subfilename at php' code , It still failed...


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

[2002-07-29 01:00:09] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

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

[2002-06-18 16:13:31] [EMAIL PROTECTED]

Let me guess: the visio file you're uploading is big?
And your php.ini settings for upload_max_filesize and post_max_size are
smaller and that's why the file is never
gonna get there..

Try this very simple example:


<form method="post" name="form" action="uploadtest.php"
enctype="multipart/form-data">
<input type="file" name="attachment">
<input type="submit">
</form>
<?php print_r($_FILES); ?>

And try submitting one of those problematic files and
paste the output here.



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

[2002-06-18 12:57:56] cindy_walker at dot dot ca dot gov

I get the identical response after I renamed the file to have the
extension .jpg.  Using IE 6.0, Netscape 6.2 or Opera 6.2 doesn't work
either for visio files. It looks like visio is the only problem file
type. 

This isn't a big problem for us.  I was asked to add a file upload
feature to an application, but so far no one has uploaded any files.

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

[2002-06-18 12:32:26] [EMAIL PROTECTED]

I really think this is a browser issue. What happens if you rename a
viso file to .jpg or .gif, or any other extension that does work? If
you can upload that file, then it's a browser problem.

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

[2002-06-18 12:10:32] cindy_walker at dot dot ca dot gov

Finally we have PHP 4.20 installed.  It does solve the problem for
uploading zip files with Netscape 4.7.  It still doesn't allow the
successful upload of visio files. It puts the file on the server with
the correct name, but its a zero KB file.

These PHP commands: 

echo "HTTP_POST_FILES tmpname: ".$HTTP_POST_FILES['attachment']
['tmp_name']."<br>\n";
echo "attachment_name: ".$attachment_name."<br>\n";
echo "attachment: ".$attachment."<br>\n";
echo "attachment_size: ".$attachment_size."<br>\n";
echo "attachment_type: ".$attachment_type."<br>\n";

result in this output: 

HTTP_POST_FILES tmpname: 
attachment_name: test.vsd
attachment: 
attachment_size: 0
attachment_type: 

PHP 4.2 can get the name but little else from a visio file. 

I'll see if I can get one of the server admins to look at the http
traffic that happens during the upload of visio files.

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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/16353

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

Reply via email to