to paraphrase: during the long upload period your application or the data it uses is in an in-between state such that other users should not be allowed to perform the same or similar operations?
you need either a queue (perhaps) or a lock (definitely). That could be something as simple as creating a lockfile during the upload and deleting it at the end of the processing step: if the lockfile exists, you just warn the other user that they'll have to wait.
You would need a mechanism for dealing with dropped connections, stop buttons and other user problems that might result in the upload being incomplete and the lockfile remaining, though. an age limit for the file would probably be part of that, along with (eg) email notification of the person whose upload failed.
it does sound like perhaps you should reconsider the input mechanism, but without knowing more I can't say anything sensible about that.
|