Småting
This commit is contained in:
@@ -2,9 +2,11 @@
|
||||
session_start();
|
||||
ini_set('display_errors', '1');
|
||||
ini_set('display_startup_errors', '1');
|
||||
|
||||
$public_url = 'filer.trygve.net/';
|
||||
|
||||
if(isset($_FILES['file'])) {
|
||||
$file = $_FILES['file'];
|
||||
|
||||
$fileName = $_FILES['file']['name'];
|
||||
$file_name = $file['name'];
|
||||
$file_tmp = $file['tmp_name'];
|
||||
@@ -45,7 +47,7 @@ if(isset($_FILES['file'])) {
|
||||
{
|
||||
if(move_uploaded_file($file_tmp, $file_destination))
|
||||
{
|
||||
$path = 'https://trygve.me/filopplasting/' . $file_destination;
|
||||
$path = $public_url . $file_destination;
|
||||
$filLink = '<a href=" ' . $path . '" class="alert-link">' . $path . '</a>';
|
||||
//echo $fillink;()
|
||||
$buttonData = 'Filen ble lastet opp! <a href="' . $filLink . '" class="btn btn-info">Kopier lenke</a>';
|
||||
|
||||
Reference in New Issue
Block a user