[Koha-bugs] [Bug 22508] Add the ability to prefill 856$u with the direct URL of the file
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon May 13 09:42:43 CEST 2019
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22508
--- Comment #29 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
+sub local_public_path {
+ my ($self) = @_;
+ my $upload_public_path = C4::Context->config('upload_public_path');
+ return unless $upload_public_path;
+ $upload_public_path =~ s|/$||;
+ my $filepath = "$upload_public_path/" . $self->hashvalue;
+ return $filepath;
+}
Compare with full_path sub:
my $path = File::Spec->catfile(
$self->permanent
? $self->permanent_directory
: C4::Context->temporary_directory,
$self->dir,
$self->hashvalue. '_'. $self->filename,
);
You do not use the filename only the hashvalue?
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list