Просмотр поста

.
wapsun

Please, how i can character (.) to ineffective for upload or import?
For example, I want to file (Gmail_v2.3.6.apk) to upload, because the use of character (.) It can not be uploaded. And I should to edit before uploading it

if (!empty($new_file)) {
$fname = strtolower($new_file . '.' . $ext[1]);
$ext = explode(".", $fname);
}
if (empty($name))
$name = $fname;
if (empty($name_link))
$error[] = 'Please enter.';
if ($fsize > 1024 * $set['flsz'])
$error[] = 'File exceeds the weight ' . $set['flsz'] . ' KB.';
if (count($ext) != 2)
$error[] = 'File wrong name! By sending only allowed with the name of File and one extension (<b>name.ext</b>)';
if (!in_array($ext[1], $al_ext))
$error[] = 'Prohibited file type! By sending only allowed files with the extension of the following: ' . implode(', ', $al_ext);