% my %d = ( % delay_0 => l('no time limit'), % delay_1 => l('24 hours'), % delay_365 => l('1 year') % );
% if (defined(config('broadcast_message'))) {
<%= config('broadcast_message') %>
% } % if (stash('invitation')) {
<%= l('The link(s) of your file(s) will automatically be sent by mail to %1 (%2)', stash('invitation')->ldap_user, stash('invitation')->ldap_user_mail) %>
% } % if (stop_upload) {
<%= l('Sorry, the uploading is currently disabled. Please try again later.') %>
% }
% if (!stop_upload) {
<%= 'disabled="disabled"' if config('force_burn_after_reading') %>>
% if (config('allow_pwd_on_files') && (!stash('invitation'))) {
% }

<%= l('Drop files here') %>

<%= l('or') %>

% use Number::Bytes::Human qw(format_bytes);

<%= l('Information about delays') %>

<%= l('If you choose a delay, the file will be deleted after that delay.') %>
<%= l('Don\'t worry: if a user begins to download the file before the expiration and the download ends after the expiration, he will be able to get the file.') %>

% if (defined(config('delay_for_size'))) {

<%= l('This server sets limitations according to the file size. The expiration delay of your file will be the minimum between what you choose and the following limitations:') %>

    % my $delays = config('delay_for_size'); % $delays->{0} = max_delay; % my @keys = sort {$a <=> $b} keys %{$delays}; % my $i = 0; % for my $key (@keys) { % my $delay = $delays->{$keys[$i]}; % if ($i + 1 < scalar(@keys)) { % if ($delay) {
  • <%= l('between %1 and %2, the file will be kept %3 day(s).', format_bytes($keys[$i]), format_bytes($keys[$i + 1]), $delay) %>
  • % } else {
  • <%= l('between %1 and %2, the file will be kept forever.', format_bytes($keys[$i]), format_bytes($keys[$i + 1]), $delay) %>
  • % } % } else { % if ($delay) {
  • <%= l('for %1 and more, the file will be kept %2 day(s)', format_bytes($keys[$i]), $delay) %>
  • % } else {
  • <%= l('for %1 and more, the file will be kept forever.', format_bytes($keys[$i]), $delay) %>
  • % } % } % $i++; % }
% }
% } %= javascript '/js/lufi-upload.js', type => 'module', defer => "true"