Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-15243

iOS7: Saving file to applicationDataDirectory results in incorrect path

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: iOS

      Description

      I use this code:

      var f = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory,"test.pdf");
      var ret = f.write(this.responseData);

      After "f.nativePath" value is:

      file:///Users/marco/Library/Application%20Support/iPhone%20Simulator/7.0/Applications/A7304977-7E4F-489D-A143-045F52975DED/MyApp.app/file:/Users/marco/Library/Application%2520Support/iPhone%2520Simulator/7.0/Applications/A7304977-7E4F-489D-A143-045F52975DED/Documents/test.pdf

      and i can't load this url from webview or documentviewer

      Any suggestion please?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                shossain Shak Hossain
                Reporter:
                markinux Marco Aiello
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-17484
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code