Revision d14f72e7
Von Sven Schöling vor fast 12 Jahren hinzugefügt
SL/Controller/CsvImport.pm | ||
---|---|---|
250 | 250 |
$file->fh->close; |
251 | 251 |
} |
252 | 252 |
|
253 |
my $file = SL::SessionFile->new($self->csv_file_name, mode => '<', encoding => $self->profile->get('charset')); |
|
254 |
if (!$file->fh) { |
|
255 |
flash('error', $::locale->text('No file has been uploaded yet.')); |
|
256 |
return $self->action_new; |
|
257 |
} |
|
258 |
|
|
253 | 259 |
$self->{background_job} = SL::BackgroundJob::CsvImport->create_job( |
254 | 260 |
file => $self->csv_file_name, |
255 | 261 |
profile => $self->profile, |
Auch abrufbar als: Unified diff
nicht hochgeladene Datei abfangen