Skip to content

Commit

Permalink
Teams: Fehler beim Bild hochladen (#867)
Browse files Browse the repository at this point in the history
  • Loading branch information
hhunderter committed Nov 21, 2023
1 parent 76f79f4 commit 68249cb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion application/modules/teams/config/config.php
Expand Up @@ -13,7 +13,7 @@ class Config extends \Ilch\Config\Install
{
public $config = [
'key' => 'teams',
'version' => '1.23.0',
'version' => '1.23.1',
'icon_small' => 'fa-solid fa-users',
'author' => 'Veldscholten, Kevin',
'link' => 'https://ilch.de',
Expand Down Expand Up @@ -244,6 +244,8 @@ public function getUpdate(string $installedVersion): string
// no break
case "1.22.0":
// no break
case "1.23.0":
// no break
}
return 'Update function executed.';
}
Expand Down
6 changes: 3 additions & 3 deletions application/modules/teams/controllers/admin/Index.php
Expand Up @@ -132,13 +132,13 @@ public function treatAction()
$teamsMapper->delImageById($model, true);
}

if ($_FILES['upl']['name']) {
if ($_FILES['img']['name']) {
$allowedFiletypes = $this->getConfig()->get('teams_filetypes');
$imageMaxHeight = $this->getConfig()->get('teams_height');
$imageMaxWidth = $this->getConfig()->get('teams_width');
$path = $this->getConfig()->get('teams_uploadpath');
$file = $_FILES['upl']['name'];
$file_tmpe = $_FILES['upl']['tmp_name'];
$file = $_FILES['img']['name'];
$file_tmpe = $_FILES['img']['tmp_name'];
$extension = strtolower(pathinfo($file, PATHINFO_EXTENSION));
$imageInfo = getimagesize($file_tmpe);

Expand Down
1 change: 1 addition & 0 deletions application/modules/teams/static/upload/.gitignore
@@ -0,0 +1 @@
# placeholder file for empty folder

0 comments on commit 68249cb

Please sign in to comment.