×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jun 2010
    Posts
    1

    Unhappy ApiBridge Fileupload error 404

    Hello,
    myscript is like this

    var parameters = {
    "userId" : "12345",
    "title" : "Upload Test"
    };

    APIBridge.fileUpload(
    "fileName",
    "E:\\test.JPG",
    "http://192.168.1.100/mobile/myfile.php",
    parameters,
    function(res) {
    alert("Done");
    },
    function(res) {
    alert("ERROR: here " + res.status);
    alert(res);
    }
    );

    when i call this...i get response ERROR: here 404

    can anybody help me??

  2. #2
    Registered User
    Join Date
    Sep 2008
    Location
    Manaus, Brazil
    Posts
    109

    Re: ApiBridge Fileupload error 404

    Quote Originally Posted by mshahrol View Post
    Hello,
    myscript is like this

    var parameters = {
    "userId" : "12345",
    "title" : "Upload Test"
    };

    APIBridge.fileUpload(
    "fileName",
    "E:\\test.JPG",
    "http://192.168.1.100/mobile/myfile.php",
    parameters,
    function(res) {
    alert("Done");
    },
    function(res) {
    alert("ERROR: here " + res.status);
    alert(res);
    }
    );

    when i call this...i get response ERROR: here 404

    can anybody help me??
    404 happens when the page doesn't exist. But let try it:

    Code:
    var parameters = {
     "userId" : "12345",
     	"title" : "Upload Test"
     };
    
    APIBridge.fileUpload(
     "fileName",
     	"E:\test.jpg",
     	"http://192.168.1.100/mobile/myfile.php",
     	parameters,
     	function(res) {
     		alert("Done");
     	},
     	function(res) {
     		alert("ERROR: here " + res.status);
    		alert(res);
     	}
     );
    The parameters variable is the same in the APIBridge Documentation, is it right?
    Javier Zambrano Ferreira

Similar Threads

  1. ApiBridge SendRequest fails with Error code 500
    By swarupk2007 in forum Symbian Web Runtime
    Replies: 5
    Last Post: 2010-07-05, 13:58
  2. 404 error connecting to server through Emulator
    By KevinBoyd in forum Mobile Java General
    Replies: 3
    Last Post: 2009-09-29, 09:52
  3. 404 not found error
    By vivek chandak in forum Symbian Networking & Messaging (Closed)
    Replies: 4
    Last Post: 2006-11-08, 13:35
  4. UDP datagram length - 404 error
    By cryptor in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2005-04-20, 15:06
  5. HTTP 404 error
    By RobBateman in forum Mobile Web Site Development
    Replies: 0
    Last Post: 2003-06-02, 16:44

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •