Topic: uploading problem ..

even if u run the script with defaults cofigurations u will get blank screen if u r uploading 2mb picture ..


example :
i made max size per img : 4MB
and i cant upload even a 2MB image .

my config :

// Si cambias esto deberas cambiar las carpetas fisicas
define('DIR_UP','up/');
define('DIR_IM','images/');
define('DIR_WORKING',DIR_UP.'working/');
define('DIR_TEMP',DIR_UP.'temp/');
define('DIR_TH','thumbs/');

// Configuraciones de imagenes
$max_mb = '4.0'; // Maximo tamaño de imagen (Mbytes)
$max_by = $max_mb*4194304; // Maximo tamaño de imagen en bytes)
$max_name = '10'; // Caracteres maximos (no incluye ext y ".")
$mini_ancho = '150'; // Ancho del thumb (pixels)
$mini_alto = '150'; // Alto del thumb (pixels)
$lowres = '16'; // Minimo ancho a redimensionar
$higres = '1280'; // Maximo ancho de redimension

i'm running this script on a dedicated server , so it doesnt got a upload limit per file ..

Can admins explain me why is this happening , and what can i do to fix it ?


cheers .

Thumbs up

Re: uploading problem ..

This is mostly by your hosting company. You see... You can even use "100mb" and you coul not upload a file of that size and that is because that limits are setted by the php.ini

So you can't override the max size limit. Please check your configuration with:

<? phpinfo(); ?>

Also, if you set like "8mb" you may not exceed the execution time... In a nutshell, limitations from the hosting company.

Regards.

rodolfoberrios.com | PLEASE use Tech Support forums to ask for support!

Re: uploading problem ..

but i already said that i run this script on a dedicated server .. and it doesnt has upload limits via ftp ..

Last edited by artan (2009-05-16 05:36:15)

Thumbs up

Re: uploading problem ..

i solved the problem big_smile


thanks for this great script cool .

Thumbs up

Re: uploading problem ..

artan wrote:

but i already said that i run this script on a dedicated server .. and it doesnt has upload limits via ftp ..

Yes, no ftp limit but php.ini limits you must edit that.

rodolfoberrios.com | PLEASE use Tech Support forums to ask for support!

Re: uploading problem ..

Rodolfo wrote:
artan wrote:

but i already said that i run this script on a dedicated server .. and it doesnt has upload limits via ftp ..

Yes, no ftp limit but php.ini limits you must edit that.

i could'nt find "php.ini" on my server .. u just downloaded php.ini , and than uploaded to root directory ...


could u tell me wich one from those 3 lines controles the php script ??

file_uploads = On
upload_tmp_dir = /usr/local/www/php/tmp
upload_max_filesize = 5M

cheers .

Thumbs up

Re: uploading problem ..

brr... open ssh and then use: locate php.ini
wink

rodolfoberrios.com | PLEASE use Tech Support forums to ask for support!