Download and Direct link problems when using with a subfolder. #907

This commit is contained in:
Prasath Mani 2022-12-03 06:17:55 +00:00
parent 97fd394a0f
commit 789b98f136
2 changed files with 30 additions and 2 deletions

View file

@ -1688,7 +1688,10 @@ if (isset($_GET['view'])) {
?>
</p>
<div class="d-flex align-items-center mb-3">
<b><a href="?p=<?php echo urlencode(FM_PATH) ?>&amp;dl=<?php echo urlencode($file) ?>"><i class="fa fa-cloud-download"></i> <?php echo lng('Download') ?></a></b> &nbsp;
<form method="post" class="d-inline ms-2" action="?p=<?php echo urlencode(FM_PATH) ?>&amp;dl=<?php echo urlencode($file) ?>">
<input type="hidden" name="token" value="<?php echo $_SESSION['token']; ?>">
<button type="submit" class="btn btn-link text-decoration-none fw-bold p-0"><i class="fa fa-cloud-download"></i> <?php echo lng('Download') ?></button> &nbsp;
</form>
<b class="ms-2"><a href="<?php echo fm_enc($file_url) ?>" target="_blank"><i class="fa fa-external-link-square"></i> <?php echo lng('Open') ?></a></b>
<?php
// ZIP actions

View file

@ -2531,7 +2531,32 @@
"Invalid characters in file or folder name": "Ongeldige karakters in bestands- of mapnaam",
"Operations with archives are not available": "Bewerkingen met archieven zijn niet beschikbaar",
"File or folder with this path already exists": "Bestand of map met dit pad bestaat al",
"Moved from": "Verplaatst van"
"Moved from": "Verplaatst van",
"a files": "bestanden",
"Okay": "OK",
"Enter here...": "Voer hier in...",
"Enter new file name": "Voer nieuwe bestandsnaam in:",
"Full path": "Volledig path",
"File size": "Bestandsgrootte",
"Image sizes": "Afbeeldingsgrootte",
"Charset": "Karakterset",
"Image": "Afbeelding",
"Audio": "Audio",
"Video": "Video",
"Upload from URL": "Upload van URL ",
"Files in archive": "Bestanden in archief",
"Total size": "Totale grootte",
"Compression": "Compressie",
"Size in archive": "Grootte in archief",
"Invalid Token.": "Ongeldig token",
"Fullscreen": "Volledig scherm",
"Undo": "Ongedaan maken",
"Redo": "Opnieuw doen",
"Theme": "Thema",
"Select Theme": "Kies thema",
"Select Font Size": "Kies fontgrootte",
"Are you sure want to rename?": "Weet u zeker dat u de naam wilt wijzigen?",
"Are you sure want to": "Verder gaan met"
}
},
{