Browse Source

Bug 20428: Make Koha::UploadedFile use the new config entry for tmp files

This patch makes Koha::UploadedFile->temporary_directory try to use the
new configuration entry. It will fallback to File::Spec->tmpdir
otherwise.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
18.05.x
Tomás Cohen Arazi 6 years ago
committed by Jonathan Druart
parent
commit
2b0c27beaf
  1. 2
      Koha/UploadedFile.pm

2
Koha/UploadedFile.pm

@ -168,7 +168,7 @@ Returns root directory for temporary storage
sub temporary_directory {
my ( $class ) = @_;
return File::Spec->tmpdir;
return C4::Context->config('upload_tmp_path') || File::Spec->tmpdir;
}
=head3 _type

Loading…
Cancel
Save