We're moving away from using local filesystems to store files, which is the reason we've deprecated the getFileDocumentAsFile method. If you do require access to a filedescriptor (as opposed to an inputstream), we advise you to create a temporary file using Java and copying the FileDocument to that.