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 03-19-2004, 12:55 AM   #1
scull
Senior Member
ioFTPD Scripter
 
Join Date: May 2003
Posts: 159
Default How to prevent CWD?

Hi ..

I have a VB6 question.

I have made a script that prevent unwanted dirs to be uploaded. I'm exiting my program and leave 1 ... This BLOCKS the PRE-MKD event, so far so god. BUT ( why are there always a but ? ) then ioFTPD or the client wants to CWD ( change owner dir ) to the NOT made "MKD" dir. And while searching it ioFTPD finally times out .. ( the unwanted dir however is NOT uploaded and all the other files is uploaded after the timeout and reconnet ).

The Question: How does i prevent the CWD to the unexisting, blocked dir ?

//Scull
scull is offline  
Old 03-19-2004, 03:30 AM   #2
ADDiCT
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Aug 2003
Posts: 517
Default

Do u send a '550 MKD failed' reply to the client? If u exit your script with -1, u have to return an error to the client yourself, as ioFTPD will abort it's own procedure.
ADDiCT is offline  
Old 03-20-2004, 10:00 AM   #3
scull
Senior Member
ioFTPD Scripter
 
Join Date: May 2003
Posts: 159
Default

Thanx for the help!

It does work now ..

But i used "226 Closing data connection." and "426 connection closed; transfer aborted." in a combination ... that worked too.

//Scull
scull is offline  
Old 03-21-2004, 11:21 AM   #4
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

Except 226 and 426 aren't allowed response to a MKD according to the RFC.

http://www.w3.org/Protocols/rfc959/9_References.html
Check 4.2. FTP REPLIES

5yz Permanent Negative Completion reply
...
x5z File system - These replies indicate the status of the
Server file system vis-a-vis the requested transfer or
other file system action.
...
Mouton is offline  
Closed Thread

Tags
cwd, dir, ioftpd, prevent, uploaded

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 11:42 PM.

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