Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17254] iOS: Cloud.Photos.update function is not working for photos from camera or gallery

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2014-07-07T17:59:36.000+0000
Affected Version/sRelease 3.3.0
Fix Version/sRelease 3.3.0, Release 3.4.0
ComponentsCloud, iOS
Labelsmodule_acs, qe-3.3.0, qe-testadded, regression
ReporterKajenthiran Velummaylum
AssigneePedro Enrique
Created2014-07-01T10:07:54.000+0000
Updated2014-07-07T18:57:09.000+0000

Description

*Cloud.Photos.update* function is not working for the photos from Gallery or Camera. It's throwing *Invalid photo file type* error. Please refer attached screenshot. If the new photo is assigned through an image file instead of a blob from camera or gallery then it works fine.

Steps To Reproduce

1. Create a default titanium classic app 2. Copy the app.js and windows folder from "~/Library/Application Support/Titanium/modules/commonjs/ti.cloud/3.2.3/example" into the Resources directory of the project. 3. Install and launch app on iOS device 4. Create a user from Users > Create User 5. Create a photo from Dashboard as the current user of your app is owner of that photo. 6. Press back button twice and go to Photos > Query Photo 7. Select the photo that you created from dashboard. 8. Press "Update Photo" button 9. Press "Select Photo from Gallery" or "Take Photo with Camera" to select/take a photo and use it 10. Add some text for tag field. 11. Press Update button.

Actual Result

Invalid photo file type error is thrown. (See attachment)

Expected Result

Photo should be updated correctly.

Attachments

FileDateSize
photo_update.png2014-07-01T10:07:54.000+000067776

Comments

  1. Pedro Enrique 2014-07-03

    PR for master: https://github.com/appcelerator/titanium_mobile/pull/5885 PR for 3.3.x: https://github.com/appcelerator/titanium_mobile/pull/5886
  2. Samuel Dowse 2014-07-07

    Verified fixed on: Mac OSX 10.9.4 Appcelerator Studio, build: 3.3.0.201407031747 Titanium SDK, build: 3.3.0.v20140707105712 Titanium CLI, build: 3.3.0-rc4 Alloy: 1.4.0-rc4 iOS Device: iPhone 5 (7.0.6) Followed test steps provided in the description. Photo is successfully updated with the correct tags. Closing.

JSON Source