Hi All,

I am facing truncation issue when I try to upload xml file to ML server.  Below 
is the sample xquery that I am using. In the upload.xqy the $content gets only 
the first 128KBytes of content irrespective of how much ever gets uploaded to 
server. Firebug report me that the upload went through fine, but on the server 
I see only the first 128KB. Seems like more of POST size restriction but I 
couldn't find anywhere this being configurable in marklogic app server.  
Appreciate your help.

Environment: 
Marklogic :  Marklogic Standard Edition 4.1-1
OS : Debian GNU/Linux 5.0

---------------- uploadform.xqy ----------------
xquery version "1.0-ml";
xdmp:set-response-content-type( "text/html" );

<form name="import" action="upload.xqy" method="post" 
enctype="multipart/form-data">
         File: <input type="file" class="name" name="upload" size="12"/>
          <input type="submit" value="Upload"/>
 </form>

---------------- upload.xqy ---------------------

xquery version "1.0-ml";
xdmp:set-response-content-type( "text/html" );

let $content := xdmp:get-request-field( "upload" )
let $test := xdmp:document-insert("/test/test.xml",$content)

return
"Success"

Thanks
Murali 
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to