title: Unity 3D: Uploading image showing java.net malformed error
body: <p><img src="https://i.stack.imgur.com/xyUz2.jpg" alt="enter image description here">Im working on mobile app.Trying to upload an image form sdcard,but there was an error stating "java.net malformed url exception protocol not found ". </p>
  
  <pre><code>        WWW localFile = new WWW("file://" + localFileName);
          yield return localFile;
          if (localFile.error == null)
              TraceTxt.text = TraceTxt.text+ "\nLoaded file successfully";
          else
          {
              TraceTxt.text = TraceTxt.text+ "\nOpen file error: "+localFile.error;
              yield break; // stop the coroutine here
          }
  
          WWWForm postForm = new WWWForm();![enter image description here][2]         
          postForm.AddBinaryData ("file", localFile.bytes, "file://"+localFileName, "image/png");
  
          WWW upload = new WWW(uploadURL,postForm);        
          yield return upload;
          if (upload.error == null)
              TraceTxt.text =TraceTxt.text+ "\nupload done :" + upload.text;
          else
              TraceTxt.text = TraceTxt.text+ "\nError during upload: " + upload.error;
  </code></pre>
  
  <p>The image gives u the clear idea of the error. 
  Cheers :) </p>