Ignore:
Timestamp:
2009-01-06T19:03:58+13:00 (15 years ago)
Author:
ak19
Message:

Now plugins provide the option of base64 encoding or url encoding filenames that are to be renamed (when copied into the archives dir). Previously renamed files would always be url-encoded. URL-encoding is the default now for most plugins except MP3Plugin and OggVorbisPlugin, where the default is base64 encoding. Base64 encoding filenames upon renaming them was introduced so that more files that browsers try to open in external applications can open them, since url encoding does not seem to be implemented the same everywhere (for instance, windows media player is unable to handle url-encoded wmv filenames when such files are launched in it through the browser).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/perllib/plugins/ConvertBinaryFile.pm

    r17726 r18320  
    284284    # to work on Windows (IE or Firefox), as browsers are looking for filesystem-encoded
    285285    # files on the filesystem.
    286     $tailname = &unicode::url_encode($tailname);
     286    $tailname = &util::rename_file($tailname, $self->{'file_rename_method'});
    287287
    288288    $suffix = lc($suffix);
     
    429429    my $collect_file = &util::filename_within_collection($filename_full_path);
    430430    my $collect_conv_file = &util::filename_within_collection($conv_filename);
    431     $doc_obj->set_source_filename ($collect_file);
     431    $doc_obj->set_source_filename ($collect_file, $self->{'file_rename_method'});
    432432    $doc_obj->set_converted_filename($collect_conv_file);
    433433
Note: See TracChangeset for help on using the changeset viewer.