rejetto forum
May 25, 2012, 06:13:56 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1] 2
  Print  
Author Topic: uploads and new folders  (Read 2389 times)
0 Members and 2 Guests are viewing this topic.
simbadda
Occasional poster
*
Offline Offline

Indonesia Indonesia

Posts: 9


View Profile Email
« on: July 29, 2010, 08:04:45 PM »

Thanks for your great software.

I have a few questions. I am new here so sorry if these are already covered elsewhere.  I did a little searching but didn't find anything on these.

First, the log does not seem to be logging uploads even though "Uploads" is checked.  Is this a known issue?

Second, is there a way to tell the software to log the creation of folders?
Logged
SilentPliz
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1046


....... chut ! shh!


View Profile WWW
« Reply #1 on: July 29, 2010, 09:25:16 PM »

Welcome simbadda !  Smiley


First, the log does not seem to be logging uploads even though "Uploads" is checked.  Is this a known issue?

It work fine for me.

Try/verify:

right click in the log box -> Log what -> check Uploads

Second, is there a way to tell the software to log the creation of folders?

Right click on the Home/ root of the VFS box -> Properties... -> add in the Diff template tab:

[ajax.mkdir|no log]
{.if|{.can mkdir.}|{:
   {.set|x|{.force ansi|%folder%{.postvar|name.}.}.}
   {.if|{.exists|{.^x.}.}|{.!exists.}|{:
      {.if|{.length|{.mkdir|{.^x.}.}.}|ok|{.!failed.}.}
     {.add to log|%user% {.!has created this folder:.} {.^x.}.}
   :}.}
:}|{.!forbidden.}.}

 
! This only works with the default template of HFS beta above.

Edit: message updated for compatibility with latest beta (266)
« Last Edit: August 09, 2010, 10:00:14 PM by SilentPliz » Logged
simbadda
Occasional poster
*
Offline Offline

Indonesia Indonesia

Posts: 9


View Profile Email
« Reply #2 on: July 30, 2010, 12:17:10 AM »

Hello SP, thanks for the welcome!

right click in the log box -> Log what -> check Uploads

This option is checked but the log does not change when something is uploaded.  I have tried this on two different computers.

Right click on the Home/ root of the VFS box -> Properties... -> add in the Diff template tab:

This worked.  Thanks!
Logged
SilentPliz
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1046


....... chut ! shh!


View Profile WWW
« Reply #3 on: July 30, 2010, 02:22:24 AM »

This option is checked but the log does not change when something is uploaded.  I have tried this on two different computers.

I have no idea what this could be, sorry. Undecided
« Last Edit: July 30, 2010, 03:06:15 AM by SilentPliz » Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11831


View Profile
« Reply #4 on: July 30, 2010, 09:04:20 AM »

works fine here too.
try posting your Menu > debug > show customized options
Logged
SilentPliz
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1046


....... chut ! shh!


View Profile WWW
« Reply #5 on: July 31, 2010, 12:50:17 PM »

Second, is there a way to tell the software to log the creation of folders?

For the latest beta (266) you should use this corrected section in the Diff template tab.

[ajax.mkdir|no log]
{.if|{.can mkdir.}|{:
   {.set|x|{.force ansi|%folder%{.postvar|name.}.}.}
   {.if|{.exists|{.^x.}.}|{.!exists.}|{:
      {.if|{.length|{.mkdir|{.^x.}.}.}|ok|{.!failed.}.}
     {.add to log|%user% {.!has created this folder:.} {.^x.}.}
   :}.}
:}|{.!forbidden.}.}
« Last Edit: August 09, 2010, 10:00:33 PM by SilentPliz » Logged
rejetto forum
« Reply #5 on: July 31, 2010, 12:50:17 PM »

Do you like this software? Consider even $2
 Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11831


View Profile
« Reply #6 on: August 01, 2010, 07:44:15 AM »

you are very effective SP Cheesy
Logged
SilentPliz
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1046


....... chut ! shh!


View Profile WWW
« Reply #7 on: August 01, 2010, 08:01:30 AM »


Isn't it !  Cheesy
Logged
simbadda
Occasional poster
*
Offline Offline

Indonesia Indonesia

Posts: 9


View Profile Email
« Reply #8 on: August 01, 2010, 07:34:42 PM »

Here is my output for Menu->Debug->Show customized options.  By the way, I noticed that entries get created in this list when options are changed to the non-default setting.  However, when I uncheck "Uploads", no entry is created (e.g. "log-uploads").

window-max=yes
# default: no

easy=no
# default: yes

port=8080
# default:

log-file-name=.\Log\HFSlog%y%-%m%.txt
# default:

log-date=yes
# default: no

log-only-served=no
# default: yes

log-server-start=yes
# default: no

log-server-stop=yes
# default: no

log-browsing=no
# default: yes

tpl-file=hfs.tpl
# default:

confirm-exit=yes
# default: no

search-better-ip=no
# default: yes

start-minimized=yes
# default: no

delete-partial-uploads=yes
# default: no

default-sorting=
# default: name

last-dialog-folder=C:\Software\HFS\Internet
# default: C:\HFS

last-update-check=40389.3519287037
# default: 0

last-file-open=C:\HFS\Config.vfs
# default:

mime-types=*.js|text/javascript|*.htm;*.html|text/html|*.jpg;*.jpeg;*.jpe|image/jpeg|*.gif|image/gif|*.png|image/png|*.bmp|image/bmp|*.ico|image/x-icon|*.mpeg;*.mpg;*.mpe|video/mpeg|*.avi|video/x-msvideo|*.txt|text/plain|*.css|text/css
# default: *.htm;*.html|text/html|*.jpg;*.jpeg;*.jpe|image/jpeg|*.gif|image/gif|*.png|image/png|*.bmp|image/bmp|*.ico|image/x-icon|*.mpeg;*.mpg;*.mpe|video/mpeg|*.avi|video/x-msvideo|*.txt|text/plain|*.css|text/css|*.js|text/javascript

recent-files=C:\HFS\Config.vfs
# default:

trusted-files=C:\HFS\Config.vfs
# default:

number-files-on-upload=no
# default: yes

out-total=59366341
# default: 0

in-total=54115303
# default: 0

hits-total=6724
# default: 0

downloads-total=9
# default: 0

upload-total=8
# default: 0

connections-columns=IP address;206|File;206|Status;180|Speed;60|Time left;55|Progress;50|
# default: IP address;206|File;206|Status;206|Speed;50|Time left;50|Progress;50|

auto-comment=yes
# default: no

update-daily=no
# default: yes
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11831


View Profile
« Reply #9 on: August 03, 2010, 06:44:00 AM »

Here is my output for Menu->Debug->Show customized options.  By the way, I noticed that entries get created in this list when options are changed to the non-default setting.  However, when I uncheck "Uploads", no entry is created (e.g. "log-uploads").

indeed, there'a a bug. That option is neither saved, and you lose the setting at every restart. Fixed in next release (265).

Thanks to the customized options you posted i got to reproduced the bug. It's likely to be fixed for the next release, I'm working on it right now.
In the while you may workaround it by enabling the "browsing" in the log menu.
Logged
simbadda
Occasional poster
*
Offline Offline

Indonesia Indonesia

Posts: 9


View Profile Email
« Reply #10 on: August 03, 2010, 06:16:04 PM »

Awesome.  Thanks for all of your work on this rejetto!
Logged
SilentPliz
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1046


....... chut ! shh!


View Profile WWW
« Reply #11 on: August 09, 2010, 09:57:14 PM »

For the latest beta (266) you should use this corrected section in the Diff template tab.

[ajax.mkdir|no log]
{.if|{.can mkdir.}|{:
   {.set|x|{.force ansi|%folder%{.postvar|name.}.}.}
   {.if|{.exists|{.^x.}.}|{.!exists.}|{:
      {.if|{.length|{.mkdir|{.^x.}.}.}|ok|{.!failed.}.}
     {.add to log|%user% {.!has created this folder:.} {.^x.}.}
   :}.}
:}|{.!forbidden.}.}

Hopefully this will be also valid for the next beta ... but I dare not assert. Cheesy
« Last Edit: August 09, 2010, 10:01:02 PM by SilentPliz » Logged
r][m
Insane poster
*****
Offline Offline

United States United States

Posts: 340


View Profile
« Reply #12 on: August 23, 2010, 11:57:19 AM »

For the latest beta (266) you should use this corrected section in the Diff template tab.

[ajax.mkdir|no log]
{.if|{.can mkdir.}|{:
   {.set|x|{.force ansi|%folder%{.postvar|name.}.}.}
   {.if|{.exists|{.^x.}.}|{.!exists.}|{:
      {.if|{.length|{.mkdir|{.^x.}.}.}|ok|{.!failed.}.}
     {.add to log|%user% {.!has created this folder:.} {.^x.}.}
   :}.}
:}|{.!forbidden.}.}

Hopefully this will be also valid for the next beta ... but I dare not assert. Cheesy
@ SilentPliz
Is there a way to make this work without ajax? I'd like to use this in my tpl, or in events.
Tried code below in events, but it doesn't work.
Code:
[+request]
{.set|z|%folder%{.postvar|fldname.}.}.}
{.add to log|%user% {.!added this folder:.} {.^z.}.}
.}
I use
Code:
[special:begin]
{.if|{.and|{.get|can delete.}|{.postvar|createfolder.}.}|{: {.mkdir|%folder-resource%\{.postvar|fldname.}.}
 :}/if.}
And in tpl main section
Code:
<form>
Folder name: <input type='text' name='fldname'><input type='submit' name='createfolder' value='Add Folder'>
</form>
Logging user created folder is my need.
« Last Edit: August 23, 2010, 12:24:58 PM by r][m » Logged
SilentPliz
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1046


....... chut ! shh!


View Profile WWW
« Reply #13 on: August 23, 2010, 02:02:17 PM »

Hi r][m !  Wink

Try this:
Add the blue line in the code that you already have in your template.

[special:begin]
{.if|{.and|{.get|can delete.}|{.postvar|createfolder.}.}|{: {.mkdir|%folder-resource%\{.postvar|fldname.}.}
{.add to log|%user% added this folder: %folder%{.postvar|fldname.}.}
 :}/if.}

Replace %folder% by %folder-resource%\ if you want see Windows paths, rather than Web based paths.

Remove %folder% if you want only see the folder name displayed in the log.

 Smiley
Logged
r][m
Insane poster
*****
Offline Offline

United States United States

Posts: 340


View Profile
« Reply #14 on: August 24, 2010, 12:01:32 AM »

@ SilentPliz
I had tried with [special:begin] but I was over complicating it, as usual.
Works perfectly  Grin
Many thanks
Logged
Pages: [1] 2
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page May 17, 2012, 10:17:49 PM