How do I use the picker to select a file from arbitrary location and then save the file (copy it) into my app local storage ? RRS feed

  • Question

  • Hi, I'm trying to create an app that collects pictures and then do stuff to them. In order to do that, I need to be able copy the files to somewhere the app can access at anytime. If anyone can give me a pointer it would be great!


    Tuesday, May 22, 2012 5:57 AM


  • Well you just use the file picker like this (pseudocode)


    fileOpenPicker.commitButtonText = "Copy"
        fileOpenPicker.fileTypeFilter.replaceAll "*"
        fileOpenPicker.pickMultipleFilesAsync().then (fileList) ->
          if fileList != null && fileList.length > 0
            for f in fileList 

    You have full access to your local app folder.


    Tuesday, May 22, 2012 10:43 AM