<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Hi John, in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Upload-To-Server/m-p/1017813#M36881</link>
    <description>&lt;P&gt;Hi John,&lt;/P&gt;

&lt;P&gt;Thanks for the quick reply,&lt;/P&gt;

&lt;P&gt;1. Yes, I have given all the appropriate permissions infact ive given all permissions 777. What else could I be doing wrong? Please see my code snippet below:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:xml;"&gt;        &amp;lt;script&amp;gt;
            function captureCamera()
            {
                intel.xdk.camera.takePicture(10,true,"png");
            }
           
            function importLibrary()
            {
                intel.xdk.camera.importPicture();
            }
           
            document.addEventListener("intel.xdk.camera.picture.add",function(event){
                var name = event.filename;
                var url = intel.xdk.camera.getPictureURL(name);
                document.getElementById("picture").setAttribute("src", url);
               alert(url);
              intel.xdk.file.uploadToServer(url,"http://wiseapp.mobi/apphour/index.php", "name", "image/png", "updateUploadProgress"); 
                
            alert("Request sent");
            });
           
            document.addEventListener("intel.xdk.camera.picture.busy",function(){
                alert("Camera is already in use");
            });
           
            document.addEventListener("intel.xdk.camera.picture.cancel",function(){
                alert("You pressed the cancel button");
            });
           
            function updateUploadProgress(bytesSent,totalBytes)
            {
               if(totalBytes&amp;gt;0)
                    currentProgress=(bytesSent/totalBytes)*100;
                document.getElementById("progress").setAttribute("value", currentProgress);
            }
    
            document.addEventListener("intel.xdk.file.upload.busy",uploadBusy);
            document.addEventListener("intel.xdk.file.upload",uploadComplete);
            document.addEventListener("intel.xdk.file.upload.cancel",uploadCancelled);
    
            function uploadBusy(evt)
            {
               alert("Sorry, a file is already being uploaded");
            }
    
            function uploadComplete(evt)
            {
               if(evt.success==true)
               {
                  alert("Image was uploaded");
                   
               }
               else {
                  alert("Error uploading file "+evt.message);
               }
            }
    
            function uploadCancelled(evt)
            {
                alert("File upload was cancelled "+evt.localURL);
            }
            
            
            &amp;lt;/script&amp;gt;&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;2. Ok, thanks anyway.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Apr 2015 14:05:25 GMT</pubDate>
    <dc:creator>Brian_K_1</dc:creator>
    <dc:date>2015-04-10T14:05:25Z</dc:date>
    <item>
      <title>Upload To Server</title>
      <link>https://community.intel.com/t5/Software-Archive/Upload-To-Server/m-p/1017811#M36879</link>
      <description>&lt;P&gt;Hi team,&lt;/P&gt;

&lt;P&gt;I am working on a project in which I need to upload an image to a server using XDK code as shown below.&lt;/P&gt;

&lt;PRE class="prettyprint"&gt;&lt;CODE&gt;intel.xdk.file.uploadToServer(pictureURL,"http://www.myserver.com/uploadImage.php", "", "image/jpeg", "updateUploadProgress");
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have two issues:&lt;/P&gt;

&lt;P&gt;1. The callback gives a success yet the upload does not even reach the server URL, what could be failing?&lt;/P&gt;

&lt;P&gt;2. Is there a way of adding more parameters to describe the upload?&lt;/P&gt;

&lt;P&gt;Please assist, thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2015 04:24:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Upload-To-Server/m-p/1017811#M36879</guid>
      <dc:creator>Brian_K_1</dc:creator>
      <dc:date>2015-04-10T04:24:19Z</dc:date>
    </item>
    <item>
      <title>1. Do you have the</title>
      <link>https://community.intel.com/t5/Software-Archive/Upload-To-Server/m-p/1017812#M36880</link>
      <description>&lt;P&gt;1. Do you have the appropriate permissions on the folder you are trying to upload to?&lt;/P&gt;

&lt;P&gt;2. No.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;It will not work in the XDK you have to build and test it on device.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2015 13:58:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Upload-To-Server/m-p/1017812#M36880</guid>
      <dc:creator>John_H_Intel2</dc:creator>
      <dc:date>2015-04-10T13:58:10Z</dc:date>
    </item>
    <item>
      <title>Hi John,</title>
      <link>https://community.intel.com/t5/Software-Archive/Upload-To-Server/m-p/1017813#M36881</link>
      <description>&lt;P&gt;Hi John,&lt;/P&gt;

&lt;P&gt;Thanks for the quick reply,&lt;/P&gt;

&lt;P&gt;1. Yes, I have given all the appropriate permissions infact ive given all permissions 777. What else could I be doing wrong? Please see my code snippet below:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:xml;"&gt;        &amp;lt;script&amp;gt;
            function captureCamera()
            {
                intel.xdk.camera.takePicture(10,true,"png");
            }
           
            function importLibrary()
            {
                intel.xdk.camera.importPicture();
            }
           
            document.addEventListener("intel.xdk.camera.picture.add",function(event){
                var name = event.filename;
                var url = intel.xdk.camera.getPictureURL(name);
                document.getElementById("picture").setAttribute("src", url);
               alert(url);
              intel.xdk.file.uploadToServer(url,"http://wiseapp.mobi/apphour/index.php", "name", "image/png", "updateUploadProgress"); 
                
            alert("Request sent");
            });
           
            document.addEventListener("intel.xdk.camera.picture.busy",function(){
                alert("Camera is already in use");
            });
           
            document.addEventListener("intel.xdk.camera.picture.cancel",function(){
                alert("You pressed the cancel button");
            });
           
            function updateUploadProgress(bytesSent,totalBytes)
            {
               if(totalBytes&amp;gt;0)
                    currentProgress=(bytesSent/totalBytes)*100;
                document.getElementById("progress").setAttribute("value", currentProgress);
            }
    
            document.addEventListener("intel.xdk.file.upload.busy",uploadBusy);
            document.addEventListener("intel.xdk.file.upload",uploadComplete);
            document.addEventListener("intel.xdk.file.upload.cancel",uploadCancelled);
    
            function uploadBusy(evt)
            {
               alert("Sorry, a file is already being uploaded");
            }
    
            function uploadComplete(evt)
            {
               if(evt.success==true)
               {
                  alert("Image was uploaded");
                   
               }
               else {
                  alert("Error uploading file "+evt.message);
               }
            }
    
            function uploadCancelled(evt)
            {
                alert("File upload was cancelled "+evt.localURL);
            }
            
            
            &amp;lt;/script&amp;gt;&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;2. Ok, thanks anyway.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2015 14:05:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Upload-To-Server/m-p/1017813#M36881</guid>
      <dc:creator>Brian_K_1</dc:creator>
      <dc:date>2015-04-10T14:05:25Z</dc:date>
    </item>
  </channel>
</rss>

