Re: Help debugging a file upload on IIS
| From: | Ashley Sheridan | Date: | Mon, 29 Dec 2008 23:45:27 +0000 |
| Subject: | Re: Help debugging a file upload on IIS | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-285218@lists.php.net to get a copy of this message | ||
On Mon, 2008-12-29 at 13:29 -0800, Brian Dunning wrote:
> The one thing I was doing was:
> move_uploaded_file($_FILES['upload_file']['tmp_name'], $new_path);
>
> but nothing was happening, no new file appearing where it was supposed
> to, and no error returned, left me scratching my head. (Later the same
> script logs the upload to MySQL using data from $_FILES and that part
> works fine.)
>
> On Dec 29, 2008, at 12:43 PM, Ashley Sheridan wrote:
>
> > Sorry, that's a silly question, ignore that. As far as I'm aware, IIS
> > removes the files once the script has run it's course; so unless
> > you're
> > doing something with the file in your code, you won't really see it.
>
>
>
Does the script have permission to write the file to the new directory?
What value is returned from attempting this? Just assign that
move_uploaded_file line to a variable and print the output.
Ash
www.ashleysheridan.co.uk