Skip to main content
Dileep_NR
Inspiring
October 8, 2010
Question

How to identify a file is opened or not while uploading

  • October 8, 2010
  • 2 replies
  • 612 views

Hi All,

When we choose file for uploading and it is possible to check(using Javascript/ColdFusion) that file is opened in the users desktop?

Eg: if a user  trying to upload a file named 'test.doc' and I have to  notify the user that the file is open state and ask him close the file close before uploading

    This topic has been closed for replies.

    2 replies

    BKBK
    Community Expert
    Community Expert
    October 9, 2010

    The functionality you want raises some issues. Suppose you could alert the user of open files. What if, unbeknownst to the user, some application or background process is reading the file?

    Why do you need to know whether the file is open anyway? Does upload fail for client files that are open? If the upload succeeds, open file or not, why tell the user anything?

    If you really insist, there is an easy way out. Just tell the user to ensure the file is closed before uploading it.

    Owainnorth
    Inspiring
    October 8, 2010

    Almost certainly not, anything desktop is sandboxed away from JS for security.