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

iOS: Cannot upload a photo blob to ACS

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 3.2.3
    • Fix Version/s: Release 3.2.3
    • Component/s: iOS
    • Environment:

      Appcelerator Studio, build: 3.2.3.201403181115
      SDK build: 3.2.3.v20140319091659
      ti.cloud: 3.2.1 (latest)
      CLI: 3.2.1
      Alloy: 1.3.1
      Xcode: 5.1
      Devices: iphone 5 (7.1)

      Description

      Details: On iOS, cannot upload a photo blob from the camera or photo gallery to ACS.

      Note:
      1. This is a regression. SDK 3.2.2.GA + ti.cloud 3.2.1 works fine, but SDK 3.2.3 + ti.cloud 3.2.1 does not
      2. Cannot reproduce the issue on an Android device

      Steps to reproduce:
      1. Create a default Titanium classic app
      2. Next, download and unzip the Archive.zip attachment
      3. Drag both the Resources and tiapp.xml into the project created in step 1; replacing both the Resources directory and tiapp.xml
      4. Install and launch app to an iOS device
      5. Go to Users > Login User and login with username a and password 1234
      6. Press Back button twice and go to Photos > Create Photo
      7. Press Select Photo from Gallery or Take Photo with Camera to take a photo
      8. Press Create button

      Actual: Failed to upload photo error appears (see error.png attachment) even though the photo is 935 KB.

      Expected: Should be able to upload a photo from either the photo gallery or after taking a photo.

      Another note: If you go to Resources/windows/photos/create.js and uncomment line 36 and 52 (getting the photo with Ti.Filesystem.getFile in Ti.Media.openPhotoGallery and Ti.Media.showCamera respectively), you can upload the photo to ACS without any issues.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jalter Jon Alter
                Reporter:
                wluu Wilson Luu (Inactive)
                Reviewer:
                Sabil Rahim
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code