php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31985 Uploading on Windows
Submitted: 2005-02-15 15:20 UTC Modified: 2005-02-17 06:16 UTC
From: mshuffle at bournemouth dot ac dot uk Assigned:
Status: Closed Package: HTTP related
PHP Version: 4.3.11-dev OS: redhat linux server
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mshuffle at bournemouth dot ac dot uk
New email:
PHP Version: OS:

 

 [2005-02-15 15:20 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-17 06:16 UTC] sniper@php.net
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.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 01:01:34 2025 UTC