mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-17 04:15:15 +02:00
show maximagesize warning in a human readable format
This commit is contained in:
parent
e0f6bd6c28
commit
a982320ba9
5 changed files with 17 additions and 5 deletions
|
@ -78,9 +78,9 @@ function wall_attach_post(&$a) {
|
|||
}
|
||||
|
||||
if(($maxfilesize) && ($filesize > $maxfilesize)) {
|
||||
notice( sprintf(t('File exceeds size limit of %d'), $maxfilesize) . EOL);
|
||||
echo sprintf(t('File exceeds size limit of %s'), formatBytes($maxfilesize)) . EOL;
|
||||
@unlink($src);
|
||||
return;
|
||||
killme();
|
||||
}
|
||||
|
||||
$r = q("select sum(octet_length(data)) as total from attach where uid = %d ",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue