[% USE Api2; USE CacheBuster; SET CPANEL.CPVAR.dprefix = "../"; SET locale_attributes = execute( "Locale", "get_attributes", {'attributes'=>'locale,encoding,direction'} ).data; SET file_upload_remaining_size = 0; SET getdiskinfo = Api2.exec("Fileman" , "getdiskinfo" , {}); IF getdiskinfo.size; SET file_upload_remaining_size = getdiskinfo.0.file_upload_remain_humansize; SET max_upload_bytes = getdiskinfo.0.file_upload_max_bytes; SET start_max_upload = getdiskinfo.0.file_upload_remain; END; SET user_has_quota = (start_max_upload != '∞'); SET random_data = ""; SET getranddata = Api2.exec("Rand" , "getranddata" , {}); IF getranddata.size; SET random_data = getranddata.0.random; END; SET return_link = "./index.html?dir=" _ FORM.item('dir').uri(); %] [% locale.maketext("[asis,cPanel] File Manager v3 - File Upload") %] [% IF locale_attributes.direction == 'rtl' %] [% END %]
[% IF user_has_quota && start_max_upload <= 0 -%]
[% locale.maketext('Your account has reached its disk usage quota. Because of this, you cannot upload files.') %] [% locale.maketext('Delete some files, or contact your hosting provider to request an increase to your account’s quota.') %]
[% ELSE -%]

[% locale.maketext("Select the file you want to upload to “[_1]”.", FORM.dir) %]

[% locale.maketext("Maximum file size allowed for upload:") %] [% file_upload_remaining_size %]

[% locale.maketext('Drop files here to start uploading') %]

[% locale.maketext('or') %]

[% END -%]
[% IF !user_has_quota || start_max_upload > 0 -%] [% END -%]