|
Lines 37-51
our $uploads = [
Link Here
|
| 37 |
], |
37 |
], |
| 38 |
]; |
38 |
]; |
| 39 |
|
39 |
|
| 40 |
# Before we mock upload_path, we are checking the real folder |
|
|
| 41 |
# This may help identifying upload problems |
| 42 |
my $realdir = C4::Context->config('upload_path'); |
| 43 |
if( !$realdir ) { |
| 44 |
warn "WARNING: You do not have upload_path in koha-conf.xml"; |
| 45 |
} elsif( !-w $realdir ) { |
| 46 |
warn "WARNING: You do not have write permissions in $realdir"; |
| 47 |
} |
| 48 |
|
| 49 |
# Redirect upload dir structure and mock File::Spec and CGI |
40 |
# Redirect upload dir structure and mock File::Spec and CGI |
| 50 |
my $tempdir = tempdir( CLEANUP => 1 ); |
41 |
my $tempdir = tempdir( CLEANUP => 1 ); |
| 51 |
t::lib::Mocks::mock_config('upload_path', $tempdir); |
42 |
t::lib::Mocks::mock_config('upload_path', $tempdir); |
| 52 |
- |
|
|