Compare commits

...

4 commits

Author SHA1 Message Date
Joshua Myers 2fb4132ba7
Merge 57579e379e into a1ae0fa729 2024-05-07 20:59:25 +05:30
BANKA2017 a1ae0fa729
fix: #52 Does not respect directory tree while uploading a folder containing sub-folders (#1056) 2024-05-01 10:01:27 +05:30
Joshua Myers 57579e379e
Opted for CSS-Based Functionality Instead of JS 2024-03-01 12:26:58 -06:00
Joshua Myers 0f7d1b1378
Automatically Select the Full Filepath When Clicked
This will aid in an easier ability to copy/paste when you need the filepath for other uses.
2024-02-02 15:47:40 -06:00

View file

@ -958,7 +958,7 @@ if (!empty($_FILES) && !FM_READONLY) {
$targetPath = $path . $ds;
if ( is_writable($targetPath) ) {
$fullPath = $path . '/' . basename($fullPathInput);
$fullPath = $path . '/' . $fullPathInput;
$folder = substr($fullPath, 0, strrpos($fullPath, "/"));
if (!is_dir($folder)) {
@ -1703,7 +1703,7 @@ if (isset($_GET['view'])) {
<p class="break-word"><b><?php echo lng($view_title) ?> "<?php echo fm_enc(fm_convert_win($file)) ?>"</b></p>
<p class="break-word">
<?php $display_path = fm_get_display_path($file_path); ?>
<strong><?php echo $display_path['label']; ?>:</strong> <?php echo $display_path['path']; ?><br>
<strong><?php echo $display_path['label']; ?>:</strong> <span style="user-select:all;"><?php echo $display_path['path']; ?></span><br>
<strong>File size:</strong> <?php echo ($filesize_raw <= 1000) ? "$filesize_raw bytes" : $filesize; ?><br>
<strong>MIME-type:</strong> <?php echo $mime_type ?><br>
<?php