php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10956 move_uploaded_file()
Submitted: 2001-05-18 12:12 UTC Modified: 2001-12-14 15:08 UTC
From: dziadek at pnet dot pl Assigned:
Status: Not a bug Package: Filesystem function related
PHP Version: 4.0.5 OS: Linux
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: dziadek at pnet dot pl
New email:
PHP Version: OS:

 

 [2001-05-18 12:12 UTC] dziadek at pnet dot pl
move_uploaded_file (string filename, string destination)

if string filename is in array then function don't work and return false but if string filename is in normal variable then work.

here is example(this not work):
<?
if ($go==1)  { move_uploaded_file($ARR[foto],"/home/dziadek/public_html/webmind/temp/aaa.jpg");}

?> <FORM ENCTYPE="multipart/form-data" method="post">
<INPUT TYPE="file" name="ARR[foto]">
<INPUt TYPE="hidden" name="go" value=1>
<INPUT TYPE="submit">
</FORM>

this example work:
<?
if ($go==1)  { move_uploaded_file($foto,"/home/dziadek/public_html/webmind/temp/aaa.jpg");}

?> <FORM ENCTYPE="multipart/form-data" method="post">
<INPUT TYPE="file" name="foto">
<INPUt TYPE="hidden" name="go" value=1>
<INPUT TYPE="submit">
</FORM>

I don't understand why fisrt example don't work.

Sorry for my broken and easy English.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-14 15:08 UTC] sander@php.net
You're probably doing something wrong. Ask support questions on the appropriate mailinglist.
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC