Index: [Article Count Order] [Thread]

Date:  Mon, 29 Nov 2004 23:09:32 -0600
From:  "Scott McClaiin" <smcclain (at mark) mcsgeek.com>
Subject:  [coba-e:01625] Re: php upload file BQ - FC1
To:  <coba-e (at mark) bluequartz.org>
Message-Id:  <000b01c4d69a$c7382670$0301a8c0@smcclain>
In-Reply-To:  <20041130040658.M79206 (at mark) palei.com>
X-Mail-Count: 01625

If post_max_size = 5M or upload_max_filesize = 5M and you are uploading a 6M
file, that is exactly what would happen the move_uploaded_file() event would
start and fail causing a 0kb file to be created in /tmp.

-----Original Message-----
From: Paul Aviles [mailto:paul.aviles (at mark) palei.com] 
Sent: Monday, November 29, 2004 10:07 PM
To: coba-e (at mark) bluequartz.org
Subject: [coba-e:01623] Re: php upload file BQ - FC1

well, that too. Since the error appears to be like move_uploaded_file() it
makes me think that is a post upload event 
in which case the php.ini settings will have already been applied.

-pa

On Mon, 29 Nov 2004 18:23:03 -0600, Scott McClaiin wrote
> /etc/php.ini
> Check these settings in php.ini
> 
> post_max_size = 10M
> file_uploads = On
> upload_max_filesize = 10M
> 
> post_max_size and upload_max_filesize should be greater than the maximum
> file size you are trying to upload; however, you do not want to set this
too
> high, PHP uploads and posts do have their limitations.  Excessive amounts
> will affect the overall performance of your server.
> 
> -----Original Message-----
> From: Gasser Pascal [mailto:p.gasser (at mark) wapspirit.ch] 
> Sent: Monday, November 29, 2004 2:34 PM
> To: coba-e (at mark) bluequartz.org
> Subject: [coba-e:01621] Re: php upload file BQ - FC1
> 
> The tmp is with the permission 777
> 
> ----- Original Message ----- 
> From: "Paul Aviles" <paul.aviles (at mark) palei.com>
> To: <coba-e (at mark) bluequartz.org>; <coba-e (at mark) bluequartz.org>
> Sent: Monday, November 29, 2004 6:48 PM
> Subject: [coba-e:01620] Re: php upload file BQ - FC1
> 
> > Do this as a test, change the permission to 666 on /tmp and see if that 
> > works. On some file systems, you cannot create
> > a file if you don't have permissions but you can touch a file.
> >
> > -pa
> >
> >
> > On Mon, 29 Nov 2004 17:46:59 +0100, Gasser Pascal wrote
> >> Hello,
> >>
> >> Since 1 week I have this message when I want upload a file.
> >>
> >> Warning:  move_uploaded_file(): Unable to move '/tmp/phpgMAH9L' to
....
> >>
> >> The file is created but with 0 kb, the problem is (maybe) the file is 
> >> created with the 644 permission.
> >>
> >> Where is the umask parameter for upload file ?
> >>
> >> I come crazy
> >>
> >> Pascal
> >>
> >> -- 
> >> This message has been scanned for viruses and
> >> dangerous content by MailScanner, and is
> >> believed to be clean.
> >
> >
> >
> > --
> > Paul Anthony Aviles
> >
> > -- 
> > This message has been scanned for viruses and
> > dangerous content by MailScanner, and is
> > believed to be clean.
> >
> >
> > 
> 
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.



--
Paul Anthony Aviles

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.