rejetto forum
Software => HFS ~ HTTP File Server => Beta => Topic started by: rejetto on July 12, 2010, 11:53:35 PM
-
download @ www.dovedove.it/hfs/hfs262.exe
what's new
+ new template macro: js encode
+ new template feature: remembers paging user's choice
+ new template option: "paged", to disable paging for everyone
+ hints for accounts with long name
* "B" for "bytes" removed from %total-size%, %item-size% and some other symbols [link] (http://www.rejetto.com/forum/index.php/topic,8247.msg1050616.html#msg1050616)
- mime types broken in build #260 [link] (http://www.rejetto.com/forum/index.php/topic,8459.msg1049722.html#msg1049722)
- random AV [link] (http://www.rejetto.com/forum/index.php/topic,8278.msg1049888.html#msg1049888)
- attempt to fix quitting AV [link] (http://www.rejetto.com/forum/index.php/topic,8699.0.html)
- hashed files were not working correctly with the new template [link] (http://www.rejetto.com/forum/index.php/topic,8459.msg1050184.html#msg1050184)
-
;) thanks rejetto !
-
thanks for the quick fix, had not tested the updated template yet lol
-
Rename option doesn't work.
msg:
Error: failed
---------------------------
It also seems to have an error in the template, line 34 ... it lacks a point.
HFS = { folder:'{.js encode|%folder%.}', number:%number%, paged:{.!paged.} };
-
shit ! :D
i updated the package to include the fixed template.
who already updated before 12:00am GMT, please re-download manually.
-
It's me again, sorry! :D
You have only corrected this:
HFS = { folder:'{.js encode|%folder%.}', number:%number%, paged:{.!paged.} };
You have not corrected the rename function. :-\
I feel that you will soon repeat "shit" ... but seriously, perhaps this time. :P
-
@sp
the period is present here.
is your exe file 2.606.080 bytes ?
-
Yes, but nothing new about the renaming function. :-\
SOLVED HERE:
http://www.rejetto.com/forum/index.php/topic,8754.msg1050883.html#msg1050883
-
the tpl you attached is the same, ok.
i just tested the rename on a file inside a real folder, it worked perfectly.
if you cannot find any clue, i can access your hfs through an account you can give me via email.
-
for me renaming with the default tpl doesnt work at all :/
and with my rawr mod i can only rename files and folders with no whitespaces in its name :/
in the macrolog its
rename|E:\Tools\HFS\Uploads\ASP - Zauberbrüder|E:\Tools\HFS\Uploads\ASP - Zauberbrüd
so it should work ...
but the folder still has the same name
-
Hi Roessi :)
for me renaming with the default tpl doesnt work at all :/
Thank you for confirming the problem, I'm not alone. ;)
Yesterday rejetto was trying to help me to understand what was wrong.
We understood that the paths web-based does not work in my case (this causes an ajax error)
rejetto wrote:
ok, the executed macro is
{.length|{.rename|/SilentPliz/SilentPliz.plc|/SilentPliz/test.plc.}.}
since it's not working, we can try to understand more.
try changing the paths from web-based to absolute C:\
and run it in the Debug > run script
I tried wich following, and it worked perfectly:
{.rename|d:\SilentPliz\SilentPliz.plc|d:\SilentPliz\test.plc.}
We must wait until rejetto corrects or suggest an another solution.
Perhaps from %folder-resource% (?)
and with my rawr mod i can only rename files and folders with no whitespaces in its name :/
in the macrolog its
rename|E:\Tools\HFS\Uploads\ASP - Zauberbrüder|E:\Tools\HFS\Uploads\ASP - Zauberbrüd
edit: I corrected an error... I had pasted a different code :-\ :D
For your problem of names containing whitespaces, try to test from the "old" solution ... it works for me and I don't have that problem.
If this works, you can adapt to your way pending the new template of rejetto.
{.if|{.get|can delete.}|
{.if|{.get|can upload.}|
<form method='post' id='renameresources'>
{:
<br />
<p><input type='text' name='oldname0' value="{.! Filename / Foldername.}" onMouseOver="if(this.value=='{.! Filename / Foldername.}')this.value=''" style="background-color:#fff; border:2px solid #AB9F82;" size="31">
<input type='text' name='newname0' value="{.!New Name.}" onMouseOver="if(this.value=='{.!New Name.}')this.value=''" style="background-color:#fff; border:2px solid #AB9F82;" size="31">
<p><input type='text' name='oldname1' value="{.! Filename / Foldername.}" onMouseOver="if(this.value=='{.! Filename / Foldername.}')this.value=''" style="background-color:#fff; border:2px solid #AB9F82;" size="31">
<input type='text' name='newname1' value="{.!New Name.}" onMouseOver="if(this.value=='{.!New Name.}')this.value=''" style="background-color:#fff; border:2px solid #AB9F82;" size="31">
<p><input type='text' name='oldname2' value="{.! Filename / Foldername.}" onMouseOver="if(this.value=='{.! Filename / Foldername.}')this.value=''" style="background-color:#fff; border:2px solid #AB9F82;" size="31">
<input type='text' name='newname2' value="{.!New Name.}" onMouseOver="if(this.value=='{.!New Name.}')this.value=''" style="background-color:#fff; border:2px solid #AB9F82;" size="31">
<p><input type='text' name='oldname3' value="{.! Filename / Foldername.}" onMouseOver="if(this.value=='{.! Filename / Foldername.}')this.value=''" style="background-color:#fff; border:2px solid #AB9F82;" size="31">
<input type='text' name='newname3' value="{.!New Name.}" onMouseOver="if(this.value=='{.!New Name.}')this.value=''" style="background-color:#fff; border:2px solid #AB9F82;" size="31">
<p><input type='text' name='oldname4' value="{.! Filename / Foldername.}" onMouseOver="if(this.value=='{.! Filename / Foldername.}')this.value=''" style="background-color:#fff; border:2px solid #AB9F82;" size="31">
<input type='text' name='newname4' value="{.!New Name.}" onMouseOver="if(this.value=='{.!New Name.}')this.value=''" style="background-color:#fff; border:2px solid #AB9F82;" size="31">
<p><input type='text' name='oldname5' value="{.! Filename / Foldername.}" onMouseOver="if(this.value=='{.! Filename / Foldername.}')this.value=''" style="background-color:#fff; border:2px solid #AB9F82;" size="31">
<input type='text' name='newname5' value="{.!New Name.}" onMouseOver="if(this.value=='{.!New Name.}')this.value=''" style="background-color:#fff; border:2px solid #AB9F82;" size="31">
<p><input type='submit' name='renamefile' value='{.!Rename.}'>
<br />
</form>
:}.}.}
{.$special:forms.}
[special:forms]
{.for|x|0|5|{:
{.if|{.and| {.get|can upload.} | {.postvar|renamefile.} | {.filename|{.postvar|newname{.^x.}.}.} .}|{:
{.rename|%folder-resource%\{.filename|{.postvar|oldname{.^x.}.}.}|%folder-resource%\{.filename|{.postvar|newname{.^x.}.}.}.}
:}.}
:}/for.}
-
np :)
Thx for the answer SP :)
k .. somehow managed in my tpl to get the renaming of folders with whitespaces done correctly :)
but i found another problem :/
if you have an folder on your harddisk in , for example
E:\HFS\Uploads\Misc\Jones
and in the Vfs
its /Uploads/Jones
%folder-resource% will be E:\HFS\Uploads\Jones
so renaming is impossible :/ -.-
would be really nice if this could be changed :)
and btw i fixed the renaming problem in the default tpl
[ajax.rename]
{.if|{.can rename.}|{:
{.set|x|%folder-resource%\{.postvar|from.}.}
{.set|y|%folder-resource%\{.postvar|to.}.}
{.if|{.exists|{.^y.}.}|exists|{:
{.if|{.exists|%folder%{.postvar|from.}.}|{:
{.if|{.length|{.rename|{.^x.}|{.^y.}.}.}|ok|failed.}
:}|not found.}
:}.}
:}|forbidden.}
put it in like this and it works :) (for me)
-
if you have an folder on your harddisk in , for example
E:\HFS\Uploads\Misc\Jones
and in the Vfs
its /Uploads/Jones
%folder-resource% will be E:\HFS\Uploads\Jones
so renaming is impossible :/ -.-
would be really nice if this could be changed :)
I think it's normal you can only rename from the web page, the reals folders and files into a real folder.
By using hfs.events ... you can rename anything you want.
and btw i fixed the renaming problem in the default tpl
It works for me too... thank you very much to have solved this problem. ;)
Edit: Excuse me I am not sure to understand... "Misc" disappears with %folder-resource%. :o
-
what i mean is like the screenshot example
they are all real folders :)
if %folder-resource% would be E:\Tools\Hfs\Uploads\Personen\Lissy
instead of E:\Tools\Hfs\Uploads\Lissy
would be easier to get sth like this renamed :)
perfect thats good :)
thx for trying if it works for you too :)
-
Sorry, I'm still not sure I understand. (shame on me)
I try: :D
%folder-resource% give always the absolute resource path on your harddrive.
/... is web-based, relative at your server home root.
If your VFS is properly constructed (planned) and faithful to the actual arrangement on the partition, you can rename carefree whatever you want ... as long as you work with real folders.
My proposal:
1 - From your hard drive, drag and drop In the VFS box the folder named Personen on the folder named Uploads (as real folder)
2 - From & in the VFS box, drag and drop the folder named Lissy (and perhaps somes other users ;)) on the folder named Personen
3 - Set the "rename" permission for the folder of your choice; e.g Personen
(caution: "rename" permission is inherited by the children folders)
-
xP
np *g*
the problem is, i dont want the folder "personen" to be displayed on web
so i drag every subfolder of the folder "personen" into the vfs
as realfolder as an subfolder of Uploads ^^
and in that case when i use %folder-resource%
it doesnt give me the absolute path on the harddrive ( E:\Tools\Hfs\Uploads\Personen\Lissy)
, it gives me an path to the harddisk (E:\Tools\Hfs\Uploads\Lissy) instead
equivalent to the structure of the VFS
but on the harddrive the path doesnt exist :/
xD
-
Ok, I see (but I have not the solution).
I tried to reproduce the same conditions that your VFS ... and I reached the same finding as yours, by examining the macro-log.html file, after an unsuccessful attempt to rename a file.
It's I believe, as I thought; we can use %folder-resource%, only in and from a real folder corresponding to a real absolute path of Windows.
If we displace a real folder in the VFS, from a real folder to another one, but which do not belong in the same absolute path, we can with %folder-resource% display the location information for the folder displaced, but we can not act on it (e.g rename it).
Maybe I'm wrong, but that seems logical ... by proceeding in this way it's like duplicating the information on resource in two places, one path would be real (absolute), but not the one wich we want. :)
I think if there is a workaround, it's in the Delphi code that will find it.
On the condition that I not say some stupid things.
-
ok, i found that commands rename,copy,move were not supporting web paths.
next release will (263).
give it a look http://www.sendspace.com/file/5pi08x
-
give it a look http://www.sendspace.com/file/5pi08x
Everything is ok now.
The "bug" reported by Roessi seems fixed with your modifications.
Thanks ;)