PHP Simplicity Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

I am not always around so I might be late on replying.

Author Topic: File size limits  (Read 4339 times)

0 Members and 1 Guest are viewing this topic.

Rat

  • Guest
File size limits
« on: July 01, 2004, 01:47:23 AM »

I downloaded the script and for the most part it works fine, but i wanted to up the file size limit to allow a 5 or 6 MB file to upload. i found the part of the script to change, but no matter what i set it to, i can only upload 1.5MB files or smaller.
Code: [Select]
/*    File Size    */
//specify the maximum size of the file in KiloBytes.
define('SFU_MAXSIZE', 7000);
This where i changed the file size. is there somewhere else i need to change it?

Thanks in advance
Rat
Logged

Saleh

  • Administrator
  • Full Member
  • *****
  • Offline Offline
  • Posts: 222
    • View Profile
    • PHP Simplicity
Re: File size limits
« Reply #1 on: July 01, 2004, 05:50:25 AM »

I downloaded the script and for the most part it works fine, but i wanted to up the file size limit to allow a 5 or 6 MB file to upload. i found the part of the script to change, but no matter what i set it to, i can only upload 1.5MB files or smaller.
Code: [Select]
/*    File Size    */
//specify the maximum size of the file in KiloBytes.
define('SFU_MAXSIZE', 7000);
This where i changed the file size. is there somewhere else i need to change it?

Thanks in advance
Rat
to upload files there are 2 file size limits, one is set by php.ini (2 MB as default) and the upload script limit (optional)!

so it seems that in your case that php.ini file size limit is set to 1.5 MB and you can't override this value !!
that's why ,as you said, no matter how you enlarge the filesize it still under 1.5 !

you have to change the settings in php.ini if you can:
Code: [Select]
; Maximum allowed size for uploaded files.
upload_max_filesize = 2M
or contact your host and ask them to allow a larger file size than 1.5 !
Logged

We don't need a reason to help people

Rat

  • Guest
Re: File size limits
« Reply #2 on: July 01, 2004, 11:30:29 AM »

Thanks...works great now.....
Rat
Logged

Saleh

  • Administrator
  • Full Member
  • *****
  • Offline Offline
  • Posts: 222
    • View Profile
    • PHP Simplicity
Re: File size limits
« Reply #3 on: July 02, 2004, 02:54:20 PM »

Thanks...works great now.....
Rat
:)
Logged

We don't need a reason to help people

Appie

  • Guest
Re: File size limits
« Reply #4 on: January 04, 2005, 05:17:50 PM »

 :-\ Hi there!   I had the same problem as RAT.  I also configured my php.ini file.

I set the max upload size to 10 M.. and offcourse the same for the script.  But when trying to upload.. this is what it say'z :

Error Log:
-buurmeisje-lang.mp3: PHP file size limit exceded!.
   :'(??

I dont know what it means..

I would appriciate any help ;D Thanx!!

P.S 
Nice script ;)
Logged

Martyn

  • Newbie
  • *
  • Offline Offline
  • Posts: 41
    • View Profile
    • Smir.co.uk
Re: File size limits
« Reply #5 on: January 04, 2005, 05:23:13 PM »

:-\ Hi there!   I had the same problem as RAT.  I also configured my php.ini file.

I set the max upload size to 10 M.. and offcourse the same for the script.  But when trying to upload.. this is what it say'z :

Error Log:
-buurmeisje-lang.mp3: PHP file size limit exceded!.
   :'(??

I dont know what it means..

I would appriciate any help ;D Thanx!!

P.S 
Nice script ;)
copy n paste your upload.php here... and config file. or send to me via pm. Thanks. i will try help. :)
Logged
Martyn

Saleh

  • Administrator
  • Full Member
  • *****
  • Offline Offline
  • Posts: 222
    • View Profile
    • PHP Simplicity
Re: File size limits
« Reply #6 on: January 05, 2005, 04:29:57 AM »

are you sure that buurmeisje-lang.mp3 is not larger than 10 MB ?
what is the value of SFU_MAXSIZE ?
if you want to be 10 MB it should be :
define('SFU_MAXSIZE'10240);
Logged

We don't need a reason to help people

Appie

  • Guest
Re: File size limits
« Reply #7 on: January 05, 2005, 09:17:11 AM »

I found it out!!  I had to configure the script indeed. And also the php.ini file.. Ive changed it to 15M in the ini file.

And i used this in the script for Max,file size: 15359 in KB.. Then i restarted the apache server.. and it works GREAT!!!

THIS IS HOW ALL UPLOAD SCRIPTS SHOULD BE.. EASY AND EFFICIÉNT!! ;D             

Thanks for the help guys!! Martyn and Saleh ;)

p.s
i think i willl be back soon for more help :D
Logged

Saleh

  • Administrator
  • Full Member
  • *****
  • Offline Offline
  • Posts: 222
    • View Profile
    • PHP Simplicity
Re: File size limits
« Reply #8 on: January 06, 2005, 05:16:35 AM »

you are most welcome ;)
Logged

We don't need a reason to help people

Martyn1

  • Guest
Re: File size limits
« Reply #9 on: January 31, 2005, 06:41:02 AM »

where is the php.ini file?
Logged
 

+ Quick Reply

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.
Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What is the answer to one plus one? (in numbers):