Forum Moderators: coopster

Message Too Old, No Replies

Check if file is being served

         

optik

7:12 pm on Sep 1, 2010 (gmt 0)

10+ Year Member



Say a user is downloading a file 123.mov a large movie file and I delete that file from the backend, will the users ongoing download fail?

Or if I was replacing the file with a new file of the same name would the download fail?

If in these cases the download fails is there any way to check if a file is being served to avoid messing up the download?

Anyango

5:12 am on Sep 2, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes it will fail right there

optik

11:42 am on Sep 2, 2010 (gmt 0)

10+ Year Member



Are you sure I've just done a quick test using SFTP and deleted a file whilst downloading and it was fine.

Matthew1980

12:02 pm on Sep 2, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi all,

I think that may just be 'in order of running', you can do this as an action so that it appears that you have actioned the delete whereas you only actually get the file deleted when the download has completed - the the OS will action the next instruction that it has cued up. Either that or I have totally misunderstood the question.

<Slighly off topic>
I think (though I could be wrong) that the OS will just store instructions up until they can be actioned, and then if one of the actions is delete or rename, then the following requests will be handled by an error, you get that sort of things in windows environments where the error/notice given is "cannot complete that request" access DB's are the worst for that, you can only have one user at a time in there, that's why lots of people migrate to sql db's because you can have multiple requests/users.

Hopefully that makes sense,

Cheers,
MRb

optik

12:36 pm on Sep 2, 2010 (gmt 0)

10+ Year Member



It would makes sense for the download to continue as this is probably a common server issue, I've posted the question on the OS forums as well and will report back.