I have a site for users to upload PDF's. In some instances we need the PDF file to be text searchable instead of scanned as an Image.
I currently use the MoveTo method to save the file to a folder and them check to see if it is seacrhable. If not I attempt to remove it but receive a message that it is being used by another process.
Is there a way I can check the file prior to using MoveTo (can I get the temp file name) or if not then release the file so it can be deleted?