Skip to content
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.

fix issue with uploader failing w/ "Unknown Error" #74

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions core/class/uploader.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,12 @@ public function __construct() {
$this->cms = $_GET['cms'];

// LINKING UPLOADED FILE
if (count($_FILES))
$this->file = &$_FILES[key($_FILES)];
if (count($_FILES)) {
foreach($_FILES as $key => $value) {
if($key)
$this->file = &$_FILES[key($_FILES)];
}
}

// CONFIG & SESSION SETUP
$session = new session("conf/config.php");
Expand Down