?
Solved

IIS FTP Server Event Triggers

Posted on 2003-02-28
10
Medium Priority
?
439 Views
Last Modified: 2012-06-21
Hello,
We use our FTP Server to communicate with the outside world. Our Application puts the files in specific directories and the customers come and pickup the data. Is there a way to catch that event and have some custom code to delete the file as soon as the file is picked-up by the customer.


Thanks
Sridhar
0
Comment
Question by:smovva
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
10 Comments
 
LVL 8

Accepted Solution

by:
tncbbthositg earned 152 total points
ID: 8043105
Not via ftp.  You could tell the customers to delete it but I wouldnt suggest it.  You can, however, create a subroutine that checks the creation date, compares with the new date, then deletes old files.  You could also check the last access date.  If the file was last accessed on it's creation date, nobody has retrieved it.  Otherwise, the dates would be different.

Hope this helps,
Pat
0
 
LVL 19

Assisted Solution

by:webwoman
webwoman earned 148 total points
ID: 8043822
You could also do it differently -- if they come in through an ASP page and grab the file, you could set it so that it deleted the file after it was grabbed.

Or you could have them log in, get a file list, grab the file, click on a checkbox to indicate it can be deleted, and delete it that way.

Or you could have them grab the file, change the file attribute to hidden, fire off an email to let them know the file will be deleted unless they respond differently, and then delete it next time they log on.

There are lots of ways, but you don't want to delete the file until you're SURE they've grabbed it. Transfers mess up, files get corrupted, etc. I certainly would be highly upset if I tried to grab the file, it got corrupted in transfer, and I couldn't go back and get it again.
0
 

Author Comment

by:smovva
ID: 8072701
I need to know if the transmission of the data is successful and then delete the file. Is there a way to capture the Event when the file was succesfully transmitted and then the FTP server notifies my code?

Please let me know.
Thanks alot
smovva
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 8

Expert Comment

by:tncbbthositg
ID: 8074409
You could ask them.  After they download the file, have them press a button confirming that it has arrived.

Pat
0
 
LVL 19

Expert Comment

by:webwoman
ID: 8076363
There's no way you can tell if the file actually downloaded correctly. It could download, and be corrupted, it could start and they could be disconnected, or they could delete it by mistake before they used it.

You really do need to ask them BEFORE you delete the file. Actually, I wouldn't really delete it, even if they DID verify they'd received it. I'd just move it or set it to hidden, so you could not show it in the links.

People make mistakes, and if it's gone and can't be reconstructed and they really need it, it's going to be YOUR fault. Better to err on the side of caution, and be able to play the savior when they need a miracle. ;-)
0
 
LVL 8

Expert Comment

by:tncbbthositg
ID: 8077321
Thanks for agreeing webwoman.  I was beginning to think that you just disagreed with anything I said :)

Pat
0
 
LVL 19

Expert Comment

by:webwoman
ID: 8085327
Nah...sometimes it's just not clear what the question is, and there's almost always more than one  way (or 10!) to do something.

But here, there's really only one way. ;-)
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 9350351
This question has been classified abandoned. I will make a recommendation to the
moderators on its resolution in a week or two. I appreciate any comments
that would help me to make a recommendation.

<note>
Unless it is clear to me that the question has been answered I will recommend delete.  It is possible that a Grade less than A will be given if no expert makes a case for an A grade. It is assumed that any participant not responding to this request is no longer interested in its final disposition.
</note>

If the user does not know how to close the question, the options are here:
http://www.experts-exchange.com/help/closing.jsp


Cd&

0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.
Suggested Courses

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question