0

Advanced Uploader POST failure

I'm trying out your "The BrowserPlus™ Advanced Uploader". I can not get the POST to my Restlet-based Web Service to work. I have no problem with uploading files to this Web Service via other means. When I render() in Advanced Uploader, Fiddler does not record any HTTP action whatsoever.

<div id="uploader"></div>
<script type="text/javascript" src="http://bp.yahooapis.com/2.4.21/browserplus-min.js"></script>
<script type="text/javascript" src="http://bp.yahooapis.com/toolbox/uploader/1.0.6/uploader-min.js"></script>
<script type="text/javascript">

BPTool.Uploader.create("uploader",
{
uploadUrl: "http://192.168.202.130:8080/coralreef-resource/file",
fileVarName: "fileName",
zipFiles: false,
fileCB: fileCB
}).render();

function fileCB(result){
alert("fileCB called");
if (result.success){
alert("fileCB upload successful: " + result.value);
} else{
alert("fileCB upload failure: " + result.verboseError + " " + result.error);
}
}

I always get "fileCB upload failure: undefined undefined". Please help.

by
2 Replies
  • Andrew,

    I put your code here and with a few mods it works for me.

    http://browserplus.org/u/support/upload1.html
    1. defined a width/height for the div
    2. added a closing script tag
    3. point to a different server upload script (so script works for everybody)
    4. add html/body tags, but don't think that actually matters


    Note that the files don't actually begin to upload until the user presses the "Upload" link as seen here:

    http://l.yimg.com/a/i/us/bp/s/1.105/tool/u...file-params.jpg

    Hope that works for you,

    Steve
    0
  • Thanks for the info. Bottom line. I think I will have to use a script, rather than try to call my Web Service (WS) directly. (Calling WS directly does not work, and appears to be not "best practice".)
    0
This forum is locked.

Recent Posts

in Support & General Questions