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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
38 - 26 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 23:01:34 2024 UTC