#31985 [Fbk->Csd]: Uploading on Windows
ID: 31985
Updated by: sniper@php.net
Reported By: mshuffle at bournemouth dot ac dot uk
-Status: Feedback
+Status: Closed
Bug Type: Unknown/Other Function
Operating System: redhat linux server
PHP Version: Irrelevant
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2005-02-15 15:33:43] derick@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2005-02-15 15:20:08] mshuffle at bournemouth dot ac dot uk
Description:
------------
My Web Host is running PHP 4.3.11-dev on redhat linux.
When windows users try to upload files to the server, it
takes the full file path C:\fullFilePath\filename.ext.As
a result the file is not uploaded and therefore isn't
working.
The code was working on a previous version of PHP. The
host has just upgraded their version of PHP.
Is this a stable release? Your PHP version drop menu
doesn't have this version.
Reproduce code:
---------------
if ($error == "") {
if (is_uploaded_file($imgtemp)){
move_uploaded_file($imgtemp,
fusion_basedir."fusion_images/".$imgname);
chmod(fusion_basedir."fusion_images/".$imgname,0644);
echo "<center><br>
<img src='".fusion_basedir."fusion_images/$imgname'><br>
Expected result:
----------------
a file uploaded to the server.
Actual result:
--------------
C:\\WINNT\\Profiles\\mshuffle\\Desktop\\street.jpg
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31985&edit=1
Thread (3 messages)