Ignore:
Timestamp:
2010-10-14T23:58:30+13:00 (14 years ago)
Author:
davidb
Message:

Elimination of rand_string

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/cgi-bin/talkback-progressbar.pl

    r23137 r23138  
    116116    if ($gsdl_cgi->param('process')) {
    117117
    118     my $rand_string  = $gsdl_cgi->param('rand_string');
    119118    my $uploadedfile = $gsdl_cgi->param('uploadedfile');
    120     my $full_filename = &util::filename_cat($gsdl_tmp_dir,
    121                         "$rand_string-$uploadedfile");
     119    my $full_filename = &util::filename_cat($gsdl_tmp_dir,$uploadedfile);
    122120
    123121    my $done_html = &talkback::generate_done_html($full_filename);
     
    136134    my $upload_html_form;
    137135
    138     if (defined $gsdl_cgi->param('rand_string')) {
    139         my $rand_string = $gsdl_cgi->param('rand_string');
    140 
    141         # Light-weight (hidden) form with progress bar
    142 
    143         $upload_html_form
    144         = &talkback::generate_upload_form_progressbar($rand_string);
    145     }
    146     else {
    147         print STDERR "Warning: Neither 'processing' nor 'rand_string' was set\n";
    148         $upload_html_form
    149         = &talkback::generate_malformed_args_html();
    150        
    151     }
     136    my $oid     = $gsdl_cgi->param('oid');
     137    my $collect = $gsdl_cgi->param('collect');
     138
     139    my $uniq_file = "$collect-$oid-doc.xml";
     140    # Light-weight (hidden) form with progress bar
     141
     142    $upload_html_form
     143        = &talkback::generate_upload_form_progressbar($uniq_file);
    152144   
    153145        print $perlAjax->build_html($gsdl_cgi, $upload_html_form);
Note: See TracChangeset for help on using the changeset viewer.