|
|
@@ -32,7 +32,7 @@ class Upload {
|
|
32
|
32
|
$randomname = Upload::generateRandomString(); // We give our file a random name - It will be this.
|
|
33
|
33
|
|
|
34
|
34
|
$cwd = getcwd(); // Our websites CWD (Current working dir)
|
|
35
|
|
- $uploadPath = $cwd . Config::$file_path . $randomname . '.' . $extension;
|
|
|
35
|
+ $uploadPath = $cwd .'/'. Config::$file_path . $randomname . '.' . $extension;
|
|
36
|
36
|
|
|
37
|
37
|
if (!in_array($extension, Config::$file_types)) {
|
|
38
|
38
|
// Error! This file does not have an acceptable filetype
|