[PHP] Weird fileupload problem

2002-09-09 Thread Trond Arve Nordheim

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?

-- 
Trond Arve Nordheim
 - This message is ROT13-encrypted twice for extra security.



msg78312/pgp0.pgp
Description: PGP signature


Re: [PHP] Weird fileupload problem

2002-09-09 Thread Paul Nicholson

-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 monthread 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 webthe way you want it!
[EMAIL PROTECTED]

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-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Weird fileupload problem

2002-09-09 Thread Trond Arve Nordheim

On Mon, Sep 09, 2002 at 10:29:04AM -0400, Paul Nicholson wrote:
 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

Actually, that didn't help :)
$_POST and $_FILES is still empty, and the httpd.conf (in the
virtualhost) reads like this;
php_value upload_max_filesize 100M
php_value max_file_size 100M
php_value post_max_size 100M
(tried to apply this both globally in the virtualhost and on a specified directory)

..and there's no .htaccess involved anymore.

 btw, this was discussed on the list within this monthread the archives  
 the manual! :)

I've read the manual, and all about the php variables I have to change... just can't 
recall reading anything about superglobals beeing emptied out :)
Reading the list archives as we speak ;)

-- 
Trond Arve Nordheim
 - This message is ROT13-encrypted twice for extra security.




msg78323/pgp0.pgp
Description: PGP signature


Re: [PHP] Weird fileupload problem

2002-09-09 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey,
http://php.net/manual/en/features.file-upload.php
hmm.the max_file_size won't do anything - you should remove it.
The post_max_size should be larger than the upload_max_filesize  you might 
just to check memory limit..that has to be larger than the 
post_max_size. 
You might want to look at the html form as wellshould have a
hidden field like:
input type=hidden name=MAX_FILE_SIZE value=a value in bytes
Make sure that the value is high enough. 
If it still fails, get the output of phpinfo() and send it to me. Also 
include the html form and target file size...100M is a lot, I hope its just a 
temp value:)
HTH!
~Pauly

On Monday 09 September 2002 11:22 am, Trond Arve Nordheim wrote:
 On Mon, Sep 09, 2002 at 10:29:04AM -0400, Paul Nicholson wrote:
  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

 Actually, that didn't help :)
 $_POST and $_FILES is still empty, and the httpd.conf (in the
 virtualhost) reads like this;
 php_value upload_max_filesize 100M
 php_value max_file_size 100M
 php_value post_max_size 100M
 (tried to apply this both globally in the virtualhost and on a specified
 directory)

 ..and there's no .htaccess involved anymore.

  btw, this was discussed on the list within this monthread the
  archives  the manual! :)

 I've read the manual, and all about the php variables I have to change...
 just can't recall reading anything about superglobals beeing emptied out :)
 Reading the list archives as we speak ;)

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
The webthe way you want it!
[EMAIL PROTECTED]

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

iD8DBQE9fMMKDyXNIUN3+UQRArY2AJ9rQkjp1DthR6P/gfTJrWhU4tPavQCeN1Io
/xOnrZsxVlgJ0HwXfxweymw=
=hevu
-END PGP SIGNATURE-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php