Filename: <INPUT TYPE="file" NAME="csvfile"><BR><BR>
+<INPUT TYPE="hidden" NAME="cdrbatch" VALUE="<% $cdrbatch %>"%>
+
<INPUT TYPE="submit" VALUE="Upload">
</FORM>
tie my %formats, 'Tie::IxHash', FS::cdr->import_formats;
+my $cdrbatch = time2str('webimport-%Y/%m/%d-%T'. "-$$-". rand() * 2**32, time);
+
</%init>
my $error = defined($fh)
? FS::cdr::batch_import( {
'filehandle' => $fh,
- 'format' => $cgi->param('format'),
+ 'format' => scalar($cgi->param('format')),
+ 'cdrbatch' => scalar($cgi->param('cdrbatch')),
} )
: 'No file';