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

Windows: getting photo from gallery fails

    Details

    • Story Points:
      5
    • Sprint:
      2016 Sprint 07 SDK, 2016 Sprint 12 SDK, 2016 Sprint 13 SDK

      Description

      It's affected 5.2.0

      Error code: -1;
      Error message: 'Failed to load content from file'

      index.js:

      function onTest() {
      	Titanium.Media.openPhotoGallery({
       		mediaTypes: [Ti.Media.MEDIA_TYPE_PHOTO],
      		success: function(e) {
      			$.imageView.image = e.media;
      		},
      		error: function(error) {			
      			Titanium.UI.createAlertDialog({
      				title: error.code,
      				message: error.error,
      				ok: 'ok'
      			}).show();
      		}
      	});
      }
       
      $.win.open();
      

      index.xml:

      <Alloy>
          <Window id='win' backgroundColor="green" layout='vertical'>
      		 <Button top='10dp' backgroundColor="blue" title='Test' onClick="onTest" />
      		 <View width='300dp' height='150dp' backgroundColor='yellow' top='30dp' onClick='onImageClick' >
      		 	<ImageView id='imageView' width='Ti.UI.FILL' height='Ti.UI.FILL' />
      		 </View>
          </Window>
      </Alloy>
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kiguchi Kota Iguchi (Inactive)
                Reporter:
                zozo4kin Zakhar Zhuravlev
                Reviewer:
                Christopher Williams
              • Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration