fix
This commit is contained in:
parent
7afff0f376
commit
fd6b64fa58
@ -3,7 +3,7 @@ session_start();
|
||||
ini_set('display_errors', '1');
|
||||
ini_set('display_startup_errors', '1');
|
||||
|
||||
$public_url = 'filer.trygve.net/';
|
||||
$public_url = 'https://filer.trygve.net/';
|
||||
|
||||
if(isset($_FILES['file'])) {
|
||||
$file = $_FILES['file'];
|
||||
@ -48,8 +48,7 @@ if(isset($_FILES['file'])) {
|
||||
if(move_uploaded_file($file_tmp, $file_destination))
|
||||
{
|
||||
$path = $public_url . $file_destination;
|
||||
$filLink = '<a href=" ' . $path . '" class="alert-link">' . $path . '</a>';
|
||||
//echo $fillink;()
|
||||
$filLink = '<a href=" ' . $path . '">' . $path . '</a>';
|
||||
$buttonData = 'Filen ble lastet opp! <a href="' . $filLink . '" class="btn btn-info">Kopier lenke</a>';
|
||||
$_SESSION['linkData'] = 'Filen ble lastet opp! ' . $filLink;
|
||||
$_SESSION['link'] = $path;
|
||||
|
Loading…
Reference in New Issue
Block a user