forked from leftypol/leftypol
Show full filename on mouseover.
This commit is contained in:
parent
d62f0ee046
commit
339853e5de
6 changed files with 32 additions and 9 deletions
4
post.php
4
post.php
|
@ -413,8 +413,8 @@
|
|||
|
||||
$is_an_image = !in_array($post['extension'], $config['allowed_ext_files']);
|
||||
|
||||
// Just trim the filename if it's too long
|
||||
if(strlen($post['filename']) > 30) $post['filename'] = substr($post['filename'], 0, 27).'…';
|
||||
// Truncate filename if it is too long
|
||||
$post['filename'] = substr($post['filename'], 0, $config['max_filename_len']);
|
||||
// Move the uploaded file
|
||||
if(!@move_uploaded_file($_FILES['file']['tmp_name'], $post['file'])) error($config['error']['nomove']);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue