FileManager - sPath missing
Brought to you by:
zachofalltrades
The version of FileManager in Plugins zip 2006-02-02 is
missing the value of sPath in the upload form : Meaning
nothing can be uploaded. [ Or maybe there's something
the me + my vanilla FC4 + FireFox 1.5 are missing. ]
Fix : in lucid_plugins/FileManager/panel.php,
replace :
action="?command=FM_UploadFile"
with
action="?command=FM_UploadFile&sPath='.$sPath.'"
It's puzzling, since this seems like a major thing for
no-one else to have seen.
Martin
:-)
PS: Or is there some wonderous .js fixing this up on
forms? Couldn't see anything...
PPS: There's also a problem deleting files, which I
guess stems from loosing track of the sPath/subDir too.
Logged In: YES
user_id=678072
About the deleting of a file is the same problem as you guessed.
FIX:
On line 234 of file lucid_plugins/FileManager/panel.php
Replace:
$body .= '<span id="span'.$count.'" style="display: none">
<strong><a
href="?command=FM_DeleteFile&delete='.$curFileObj.'"title="Confirm
deletion of '.$curFileObj.'">Confirm</a></strong></span>';
with
$body .= '<span id="span'.$count.'" style="display: none">
<strong><a
href="?command=FM_DeleteFile&delete='.$curFileObj.'&sPath='.$sPath.'"
title="Confirm deletion of
'.$curFileObj.'">Confirm</a></strong></span>';
Riccardo