I have been playing around with the ASP.NET sample project "Annotations" for several days now and am very impressed with it. I'm 99% done with my proof of concept for a project at work but I'm stuck with actually trying to "write" the file to disk. I am using the below javascript code, which came with the annotation sample project, with a couple of minor tweaks...
Code: Select all
function SaveAsPdfServer() {
var oGdViewer = document.getElementById("GdViewer1");
var FileName = GetNewGUID() + ".pdf";
var URI = "http://example.com/Annotation/Upload/" + FileName;
var UserName = "";
var Password = "";
var status = oGdViewer.SaveDocumentToPDF_2(URI, UserName, Password);
if (status == 0) {
alert("OK");
}
else {
alert("error saving file. status: " + status);
}
}
The server even replies with a Response code of 200 (everything OK) except that the file is not saved.
I have added the necessary NTFS permissions for the application user to be able to write to the upload directory as well as added an additional HTTP Handler to allow "*.pdf" with the PUT verb to that specific upload directory. Since there are no errors to follow I'm stuck....
Has anyone used this functionality before and if so, what configuration did you use to allow the uploading of these files?
Thanks!