echo "{$original_filename} • {$timeDiff}"; ?>
'; } elseif (in_array($fileType, ["video/mp4", "video/webm", "video/ogg"])) { echo ''; } elseif (in_array($fileType, ["audio/mpeg", "audio/wav", "audio/ogg"])) { echo ''; } elseif (in_array($fileType, ["text/plain"])) { $fileContent = $object['Body']->getContents(); if (strlen($fileContent) > 100000) { $fileContent = substr($fileContent, 0, 100000) . "... Preview too long. Download the file to view the full content."; } echo ''; } else { echo 'Unable to display file "' . $fileType . '". Suggest support for this type in our Discord.
'; } ?>