Re: ?? HOW TO display error message when file too large ??
Ah ha!!! Found it!
Open up your uu_default_config.pm file (in your CGI-BIN) directory:
Change max_upload from 20971520000 (which is 20GB in true bytes) to 104857600 (which is 100MB in true bytes). If you attempt to upload something bigger than 100MB, the upload progress will display an error about the maximum file size being exceeded.
Re: ?? HOW TO display error message when file too large ??
Oh poo...that wasn't it either.
Quote:
Connection Interrupted
The connection to the server was reset while the page was loading.
The network link was interrupted while negotiating a connection. Please try again.
I put in a support ticket to my web host, they're checking on it.
Re: ?? HOW TO display error message when file too large ??
Which site of yours did you change? You should have gotten an error about the file being too large immediately after hitting upload. I'll post a screenshot.
http://www.bootyplex.com/templates/i...screenshot.jpg
Re: ?? HOW TO display error message when file too large ??
POOOOOOO I'm not getting that error. :( I get the same server error on all my vShare sites. I changed the UU file on all my sites just to see and still get that error.
Try it on rappelzvideos.com
Re: ?? HOW TO display error message when file too large ??
That's really weird?!? The files in your CGI-BIN are CHMOD 755 correct? Also, could you display what is listed in your uu_default_config.pm?
Re: ?? HOW TO display error message when file too large ??
Oh yeah, everything is 755..been using vShare since 2.4...the only thing I changed is the regular settings.
Here's my uu file
Code:
package uu_default_config;
use strict;
use Exporter;
@uu_default_config::ISA = qw( Exporter );
@uu_default_config::EXPORT = qw($config);
use vars qw($config);
use vars qw($base_dir);
$base_dir = '/home/*****/public_html/rappelzvideos';
$config = {
config_file_name => 'uu_default_config',
temp_dir => $base_dir . '/templates_c/',
upload_dir => $base_dir . '/video/',
unique_upload_dir => 0,
unique_upload_dir_length => 16,
unique_file_name => 0,
unique_file_name_length => 16,
max_upload => 104857600,
overwrite_existing_files => 0,
redirect_after_upload => 1,
param_dir => $base_dir . '/templates_c/',
pass_param_dir => 1,
redirect_url => 'http://rappelzvideos.com/upload.php',
redirect_using_js_html => 1,
redirect_using_html => 0,
redirect_using_js => 0,
redirect_using_location => 0,
get_data_speed => 1000,
disallow_extensions => '(sh|php|php3|php4|php5|py|shtml|phtml|cgi|pl|plx|mp3|exe|scr|htaccess|htpasswd)',
allow_extensions => '(3gp|mp4|mov|asf|avi|flv|wmv|mpg|mpeg|mpeg4|xvid|divx|3gpp)',
normalize_file_names => 1,
normalize_file_delimiter => '_',
normalize_file_length => 32,
link_to_upload => 0,
path_to_upload => 'http://'. $ENV{'SERVER_NAME'} . '/uploads/',
send_email_on_upload => 0,
html_email_support => 0,
link_to_upload_in_email => 0,
email_subject => 'Uber File Upload',
to_email_address => '[email protected],[email protected]',
from_email_address => '[email protected]',
log_uploads => 0,
log_params => 0,
log_dir => $base_dir . '/templates_c/',
};
1;
Re: ?? HOW TO display error message when file too large ??
This is looking as though it is going to be an issue on your particular host, so it may be best to keep that ticket you have open. What is happening is that when you post a file bigger than the maximum file size, you are supposed to get an error message about the file size being exceeded. However, what you are getting is a server connection failure. You may not have the permissions (on your server) to set the CGI POST_MAX size.