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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2019 The PHP Group
All rights reserved.
Last updated: Thu Nov 14 12:01:36 2019 UTC