Go Back   FlashFXP Forums > >

Programming Need help with C/C++/Delphi? Ask here and make us all laugh.

Closed Thread
Thread Tools Rate Thread Display Modes
Old 06-03-2004, 12:43 AM   #1
Senior Member
Join Date: May 2003
Posts: 131
Default [TCL] OnUploadComplete event

Looks like that ioftpd updates the userfiles after all OUC events are done ... but i need it to grab certain correct userstats straight after a file got uploaded (in that case after io updated the userfiles) :\

Anyone any idea ?

Guardian is offline  
Old 06-03-2004, 12:51 AM   #2
Too much time...
FlashFXP Beta Tester
ioFTPD Scripter
Join Date: May 2003
Posts: 1,326

Well the logical reason ioFTPD updates the userfiles after the scripts have finished running is in the event that a script returns non-zero to block/invalidate the action. If you return non-zero on for an OnUploadComplete event, ioFTPD doesn't update the userfiles, no point adding the credits and stats if the file was deleted. (Then it would take a second update to remove the stats.)

Why not just retrieve the file size, (for credits: multiply by the user's ratio for that particular credit section) read the userfile and add the stats to the appropriate credit or stats section. (Tcl vars: $creditsection and $statssection)
neoxed is offline  
Closed Thread

correct, file, uploaded, userfiles, userstats

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 05:29 AM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)