From:             [EMAIL PROTECTED]
Operating system: W2K Pro
PHP version:      4.1.0
PHP Bug Type:     Variables related
Bug description:  $_FILES["X"]["name"] strips local path from the users entered name

I am trying to write a form to upload files to the server.

Running 4.1.0 on W2K Pro, IIS , and php.recommended.ini 

The first form gets the local (client) file name i.e.
c:\dir1\dir2\file1.txt this is displayed to the user in the <input type =
file name = filename ... > text box.

The php script that the form posts to uses $_FILES["filename"]["name"].
This returns : file1.txt 

The local path to the file has been lost.

I have not seen any documentation that implies that this is intentional or
that there is another element in the array that has the whole C:\... file
name.

As a consequence the file copy fails as the php script cannot find the
file.

Thanks

BOb
-- 
Edit bug report at http://bugs.php.net/?id=15381&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=15381&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=15381&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=15381&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=15381&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=15381&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=15381&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=15381&r=notenoughinfo


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to