-1

I need in my app a function (input type="file") so the user can copy a image from his device into a folder (/imgProducts) in my app in the same device. I tried with PHP, AJAX and XMLHTTP methods and all works fine when I try it as a website BUT when I try in Intel XDK the image is never copied.

Just in case, I added the "Folder" plugin in the project and tried in emulator AND device but still is not working.

Can anybody give me a Intel XDK compatible sample for this(Because I can´t find it in the official documentation) which I can apply?

Its necessary to give permissions to the folder imgProducts? and if so how can I give that permissions?

Thank you all.

xmnboy
  • 2,314
  • 2
  • 14
  • 31
Alan Alvarez
  • 646
  • 2
  • 11
  • 32
  • Try searching for a Cordova or PhoneGap solution. The XDK creates standard Cordova apps, so programming solutions for Cordova or PhoneGap will also apply to the XDK. – xmnboy Sep 12 '16 at 15:56

1 Answers1

-1

I gave up of trying and I solved it converting the images into Blob and saving into a IndexedDB database and now works like a charm. I recommend this method.

Alan Alvarez
  • 646
  • 2
  • 11
  • 32