#!/usr/bin/perl # Mega Upload # PHP File Uploader with progress bar Version 1.42 # Copyright (C) Raditha Dissanyake 2003 # http://www.raditha.com # Licence: # The contents of this file are subject to the Mozilla Public # License Version 1.1 (the "License"); you may not use this file # except in compliance with the License. You may obtain a copy of # the License at http://www.mozilla.org/MPL/ # # Software distributed under the License is distributed on an "AS # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or # implied. See the License for the specific language governing # rights and limitations under the License. # # The Initial Developer of the Original Code is Raditha Dissanayake. # Portions created by Raditha are Copyright (C) 2003 # Raditha Dissanayake. All Rights Reserved. # #temporary directory $tmp_dir="../temp"; # set custom temporary for CGI.pm $CGITempFile::TMPDIRECTORY = $TempFile::TMPDIRECTORY = $tmp_dir; # no use! $prog_mode = 'ajax'; # don't change the next few lines unless you have a very good reason to. $post_data_file = "$tmp_dir/$sessionid"."_postdata"; $monitor_file = "$tmp_dir/$sessionid"."_flength"; $progress_file = "$tmp_dir/$sessionid"."_progress"; $signal_file = "$tmp_dir/$sessionid"."_signal"; $qstring_file = "$tmp_dir/$sessionid"."_qstring"; 1;