[PHP] upload file size limit

2005-01-31 Thread badlya badlu
Hi,

I have created one php file for uploading the file. i
also made changes in /etc/php.ini for size limit. but
i can not upload the files greater than 5mb. Is there
any modification which has to be done in other
configuration file.
thanks in advance

santosh

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: [PHP] upload file size limit

2005-01-31 Thread Wudi
Run phpinfo() to see the Configuration File (php.ini) Path.

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



Re: [PHP] upload file size limit

2005-01-31 Thread badlya badlu
the path is /etc/php.ini 
also 
upload_max_filesize  50M  50M 

Waiting for reply.



--- Wudi [EMAIL PROTECTED] wrote:

 Run phpinfo() to see the Configuration File
 (php.ini) Path.
 
 




__ 
Do you Yahoo!? 
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250

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



Re: [PHP] upload file size limit

2005-01-31 Thread Thomas Seifert
On Mon, 31 Jan 2005 03:15:00 -0800, Badlya Badlu wrote:

 the path is /etc/php.ini 
 also 
 upload_max_filesize  50M  50M 
 
 Waiting for reply.

it also depends on your webserver. I guess you are running apache2? 


thomas

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



Re: [PHP] upload file size limit

2005-01-31 Thread badlya badlu
yes
httpd-2.0.49-4
Should i upgrade it?

--- Thomas Seifert [EMAIL PROTECTED] wrote:

 On Mon, 31 Jan 2005 03:15:00 -0800, Badlya Badlu
 wrote:
 
  the path is /etc/php.ini 
  also 
  upload_max_filesize  50M  50M 
  
  Waiting for reply.
 
 it also depends on your webserver. I guess you are
 running apache2? 
 
 
 thomas
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: [PHP] upload file size limit

2005-01-31 Thread Richard Lynch
badlya badlu wrote:
 I have created one php file for uploading the file. i
 also made changes in /etc/php.ini for size limit. but
 i can not upload the files greater than 5mb. Is there
 any modification which has to be done in other
 configuration file.

Check your POST size limit in, errr, php.ini or httpd.conf

If you only allow 5M of POST data, you can't cram 50M files into that...

POST limit should be higher than max upload size.

-- 
Like Music?
http://l-i-e.com/artists.htm

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



Re: [PHP] upload file size limit

2005-01-31 Thread Robert Sossomon
Look in /etc/httpd/conf.d/php.conf
For a buddy with a file upload need I set it to this:
Files *.php
SetOutputFilter PHP
SetInputFilter PHP
LimitRequestBody 760217600
/Files
You will need to set your upload limit higher in this file for it to work 
correctly.
Robert
--
Robert Sossomon, Business and Technology Application Technician
4-H Youth Development Department
200 Ricks Hall, Campus Box 7606
N.C. State University
Raleigh NC 27695-7606
Phone: 919/515-8474
Fax:   919/515-7812
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] upload file size limit

2005-01-31 Thread badlya badlu
thanks bobert. I have done it. thanks...


--- Robert Sossomon [EMAIL PROTECTED] wrote:

 Look in /etc/httpd/conf.d/php.conf
 
 For a buddy with a file upload need I set it to
 this:
 
 Files *.php
  SetOutputFilter PHP
  SetInputFilter PHP
  LimitRequestBody 760217600
 /Files
 
 
 You will need to set your upload limit higher in
 this file for it to work correctly.
 
 Robert
 -- 
 Robert Sossomon, Business and Technology Application
 Technician
 4-H Youth Development Department
 200 Ricks Hall, Campus Box 7606
 N.C. State University
 Raleigh NC 27695-7606
 Phone: 919/515-8474
 Fax:   919/515-7812
 [EMAIL PROTECTED]
 
 




__ 
Do you Yahoo!? 
Yahoo! Mail - Find what you need with new enhanced search.
http://info.mail.yahoo.com/mail_250

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



[PHP] Upload file size limits

2004-01-25 Thread Chris Edwards
I would like to give the users of my web site the ability to upload video
type files, up to 12 megs in size.

I notice in my PHI.INI there is a

 memory_limit =8M  ; Maximum amount of memory a script may consume
(8MB)

does this include temporary such as a file being transferred?

Also I intend to set the PHI.INI 'upload_max_filesize = 2M' to
'upload_max_filesize = 12M'.

Am I going in the right direction?

Thanks.

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



Re: [PHP] Upload file size limits

2004-01-25 Thread David T-G
Chris --

...and then Chris Edwards said...
% 
% I would like to give the users of my web site the ability to upload video
% type files, up to 12 megs in size.

OK.


% 
% I notice in my PHI.INI there is a
% 
%  memory_limit =8M  ; Maximum amount of memory a script may consume
% (8MB)
% 
% does this include temporary such as a file being transferred?

As far as I can tell it does not; I have uploaded 20M and larger files
but haven't tweaked memory_limit.


% 
% Also I intend to set the PHI.INI 'upload_max_filesize = 2M' to
% 'upload_max_filesize = 12M'.

Good.


% 
% Am I going in the right direction?

You sure are!  This has, by the way, been covered in great detail; you
should check the archives for more info.


% 
% Thanks.


HTH  HAND

:-D
-- 
David T-G  * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, Science and Health
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!



pgp0.pgp
Description: PGP signature


Re: [PHP] upload file size

2004-01-04 Thread niclas meyer
wich kind of files are we talking about?

pictures or others?
Gerard Samuel [EMAIL PROTECTED] skrev i meddelandet
news:[EMAIL PROTECTED]
 On Friday 14 November 2003 12:48 pm, joe wrote:
   is there a way to check the file size
  without fully uploading the file?
 

 No there isnt, well at least not via php...

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



Re: [PHP] upload file size

2003-11-17 Thread Raditha Dissanayake
Gerard Samuel wrote:

On Friday 14 November 2003 12:48 pm, joe wrote:
 

is there a way to check the file size
without fully uploading the file?
   

No there isnt, well at least not via php...



correct. There are two solutions you can upload with a java applet, the
applet can be configured to lock the upload at a predefined limit. Would
save you a lot of bandwidth. The second is to upload via  perl script,
which can check the Content-length header *before* processing the file
upload and block it.  In fact megaupload - the php upload progress bar
that i did some time ago has this feature.
sorry about the belated reply message had been stuck in a que..

 



--
Raditha Dissanayake.

http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 150 KB | with progress bar.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] upload file size

2003-11-16 Thread Jason Wong
On Saturday 15 November 2003 02:40, Johnson, Kirk wrote:
  this could really kill my bandwidth. is there a way to check
  the file size
  without fully uploading the file?

 Although it has been called an urban legend :), you could try the old
 MAX_FILE_SIZE trick. 

I think you may be referring to my labelling of the MAX_FILE_SIZE thing as an 
urban legend. But you're using it in the wrong context. What it was is that 
some people reported having problems uploading files with PHP and that it 
only worked when they added that MAX_FILE_SIZE tag. I countered that adding 
the tag would only, potentially, *prevent* an upload -- in the (rare) case 
that the browser supported it ...

 For this, add a hidden tag before the input
 type=file tag:

 input type=hidden name=MAX_FILE_SIZE value=(your $ of bytes here)

 This is an instruction to the browser to restrict the size of files that it
 will attempt to upload, but browers are not required to honor it.

... I think that in my tests at that time, of the 'major' browsers, only Opera 
supported the tag. But refer to the archives to be sure.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
3. ...and after I patched the microcode...

--Top 100 things you don't want the sysadmin to say
*/

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



[PHP] upload file size

2003-11-14 Thread joe
Hi
i really need help with an upload script.
right now i use
if ($HTTP_POST_FILES['userfile']['size']$maxsize) { echo File too big;
exit; }
to determine if the file is larger than allowed.
but the problem is, that if the file IS larger, it is still first fully
uploaded and then checked. i tested it several times - if the file is much
larger than allowed, it displays the error message but the page loads a lot
longer and my computer is sending the file to the server.
this could really kill my bandwidth. is there a way to check the file size
without fully uploading the file?

thanks
joe

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



Re: [PHP] upload file size

2003-11-14 Thread Gerard Samuel
On Friday 14 November 2003 12:48 pm, joe wrote:
  is there a way to check the file size
 without fully uploading the file?


No there isnt, well at least not via php...

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



RE: [PHP] upload file size

2003-11-14 Thread Johnson, Kirk
 this could really kill my bandwidth. is there a way to check 
 the file size
 without fully uploading the file?

Although it has been called an urban legend :), you could try the old
MAX_FILE_SIZE trick. For this, add a hidden tag before the input
type=file tag:

input type=hidden name=MAX_FILE_SIZE value=(your $ of bytes here)

This is an instruction to the browser to restrict the size of files that it
will attempt to upload, but browers are not required to honor it.

Kirk

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



[PHP] upload file size corruption?

2003-03-16 Thread Ronald Petty
I was wondering if php has a bug or is it apache, and how to determine
which it it.  Every file I upload to my server, I print the file size
and it is twice the normal file size?  Any idea what is going on, text
files look ok, images are all screwed up, large text files are messed
up too actually?

I am going nuts reinstalling over and over again on different computers
and keep getting this error.  I am using 2.0.40 http (I know
experimental, but don't tell me that :) )

Any ideas?  Just want to know if its php or apache that is the problem. 
If both thats ok, just need to know.
Thanks
Ron


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



Re: [PHP] upload file size corruption?

2003-03-16 Thread Rasmus Lerdorf
 I am going nuts reinstalling over and over again on different computers
 and keep getting this error.  I am using 2.0.40 http (I know
 experimental, but don't tell me that :) )

Why not?  Since this is the problem.  Upgrade to Apache 1.3.27 and
everything will be fine.

-Rasmus


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



[PHP] upload file size

2002-07-05 Thread Norman Zhang

Hi,

I can't seem to upload file bigger than 5M even if I set the
upload_max_filesize to 20M in php.ini and MAX_FILE_SIZE to 20M in the
script. What's am I missing here? Is the temporary upload directory won't
handle file this size? Please give me some pointers here. TIA.

Regards,
Norman



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




Re: [PHP] upload file size

2002-07-05 Thread Jason Wong

On Saturday 06 July 2002 10:04, Norman Zhang wrote:
 Hi,

 I can't seem to upload file bigger than 5M even if I set the
 upload_max_filesize to 20M in php.ini and MAX_FILE_SIZE to 20M in the
 script. What's am I missing here? Is the temporary upload directory won't
 handle file this size? Please give me some pointers here. TIA.

You may need to change the post_max_size (in php.ini) as well.

Manual  Handling file uploads  Common Pitfalls

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
Richard B. Johnson wrote:
 The 'C' language can order structure members anyway it wants.

You are an idiot.

- Rusty Russell on linux-kernel
*/


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