Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-11456

[ubuntu] file-transfer plugin upload not working for images

    XMLWordPrintableJSON

Details

    Description

      If an image is uploaded, a .txt file is uploaded instead

      code:
      function gotPicture(entry)

      { var fileTransfer = new FileTransfer(); var uri = encodeURI("URL"); var fileURL = entry.toInternalURL(); var options = new FileUploadOptions(); options.fileKey = fileKey; options.fileName = "picture.jpg"; options.mimeType = "image/jpeg"; fileTransfer.upload(fileURL, encodeURI(URL), successCB, errorCB, options); }

      window.resolveLocalFileSystemURL(picturePath, gotPicture, fail);

      Attachments

        Activity

          People

            alexandreabreu Alexandre Abreu
            biodiv Thomas Uher
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: