[TIMOB-16646] iOS: Cannot upload a photo blob to ACS
GitHub Issue | n/a |
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-04-01T20:44:21.000+0000 |
Affected Version/s | Release 3.2.3 |
Fix Version/s | Release 3.2.3 |
Components | iOS |
Labels | module_acs, qe-3.2.3, qe-automatedtest, regression |
Reporter | Wilson Luu |
Assignee | Jon Alter |
Created | 2014-03-20T00:35:14.000+0000 |
Updated | 2014-08-08T21:33:21.000+0000 |
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
File | Date | Size |
Archive.zip | 2014-03-20T00:35:14.000+0000 | 4161072 |
error.png | 2014-03-20T00:35:14.000+0000 | 76854 |
Can you please take a look?
PR: https://github.com/appcelerator/titanium_mobile/pull/5554
Closing ticket as fixed. Verified I was able to upload a photo blob to ACS. Tested on: Appcelerator Studio, build: 3.2.3.201403271839 SDK build: 3.2.3.v20140401134117 CLI: 3.2.3-alpha2 Alloy: 1.3.1 Xcode: 5.1 Devices: iphone 5s (7.1)