I am trying to upload a document using Aspose.Words.Document = new Aspose.Words.Document(uploadFile.value). This works fine on my local machine. When I do this on the staging server, it is looking at the server’s directory structure instead of the client’s directory structure. How do I get it to look at the correct directory structure?
Hi
Thanks for your request. I think that “uploadFile” is html UploadControl that’s why uploadFile.value returns a path to the file on your local machine. Try to use asp FileUploadControl and then use the following code.
Document doc = new Document(FileUploadControl1.FileContent);
FileContent returns the input file stream.
I hope that it will help you.
Best regards.