Delete unused media attachments

This commit is contained in:
Michael 2024-08-24 08:37:56 +00:00
parent af28b82858
commit 425f23bbdc
17 changed files with 459 additions and 372 deletions

View file

@ -71,7 +71,7 @@ class Upload extends \Friendica\BaseModule
$tempFileName = $_FILES['userfile']['tmp_name'];
$fileName = basename($_FILES['userfile']['name']);
$fileSize = intval($_FILES['userfile']['size']);
$maxFileSize = $this->config->get('system', 'maxfilesize');
$maxFileSize = Strings::getBytesFromShorthand($this->config->get('system', 'maxfilesize'));
/*
* Found html code written in text field of form, when trying to upload a