Re: Weird fileupload problem
| From: | Paul Nicholson | Date: | Mon, 09 Sep 2002 14:29:04 +0000 |
| Subject: | Re: Weird fileupload problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-115746@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hey,
First of all, you can *not* set the upload size via .htaccess. You have to
set it in httpd.conf or php.ini. And you need to use php_value instead of
php_flag.
<Directory "/dir/">
php_value upload_max_filesize 8M
</Directory>
btw, this was discussed on the list within this month....read the archives &
the manual! :)
~Pauly
On Monday 09 September 2002 10:02 am, you wrote:
> Hi!
>
> I'm working on a simple file upload form here, where the user can upload
> large zip files containing images to be added to the selected image
> gallery...
>
> However, uploading large files seems to be a little problem.. Whenever I
> upload large files (the file I'm experimenting with is about 8MB) both
> the $_POST and the $_FILES-arrays become completely empty.
>
> In my post form I have POST_MAX set to 107374182400, and in a
> .htaccess-file placed in the same directory as the upload scripts I have
> the following lines;
> php_flag upload_max_filesize 107374182400
> php_flag max_file_size 107374182400
> php_flag post_max_size 107374182400
>
> ...so, uploading small files works perfectly, but large files just
> empties the superglobal arrays... Is there any other settings I have to
> change for this to work?
- --
~Paul Nicholson
Design Specialist @ WebPower Design
"The web....the way you want it!"
paul@webpowerdesign.net
"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE9fLAyDyXNIUN3+UQRAsnJAJ92QNDBWPdjkBjETbVSjlMlisF05wCghnDe
UFzBfSnQTEfZhvxgErpcMN0=
=6CvM
-----END PGP SIGNATURE-----