2011-04-28 2 views
0

나는 appcelerator 공개 토론에이 질문을 질문하고 그러나 대답은 없다. 사진 갤러리로 사진을 업로드하려했지만 실패했습니다. 누군가가 안드로이드의 사진 갤러리를 통해 사진을 업로드하는 것이 티타늄으로 지원되는지 여부를 알려주실 수 있습니까? 감사.티타늄 appcelerator가있는 안드로이드 사진 갤러리를 통해 사진을 서버에 업로드 할 수 있습니까?

+0

을 시도 것으로 보인다 ? 이미지를 업로드하는 것은 서버에 간단한 http POST입니다. –

+0

내 서버 코드는 $ _FILES를 사용하여 PHP로되어 있습니다. Android의 사진 갤러리에 이미지를 업로드 할 수 있다는 의미입니까? – davidlee

답변

0

주제에 관한 실제 공식 문서를 찾을 수는 없지만 이에 따라. https://github.com/appcelerator/KitchenSink/blob/master/Resources/examples/camera.js

var data = [ 
    {title:'Camera Basic', hasChild:true, test:'../examples/camera_basic.js'} 
]; 

if (Ti.Platform.osname == "iphone") { 
    data.push({title:'Camera Custom Overlay', hasChild:true, test:'../examples/camera_overlay.js'}); 
    data.push({title:'Camera Overlay Webview', hasChild:true, test:'../examples/camera_overlay_webview.js'}); 
    data.push({title:'Camera Augmented Reality', hasChild:true, test:'../examples/camera_ar.js'}); 
    data.push({title:'Save to Gallery (Auto)', hasChild:true, test:'../examples/camera_gallery.js'}); 
    data.push({title:'Save to File', hasChild:true, test:'../examples/camera_file.js'});  

    Ti.include('version.js'); 

    if (isiOS4Plus()) { 
     data.push({title:'Video Record', hasChild:true, test:'../examples/camera_video.js'}); 

     //TODO: this seems to work the first time, but not subsequent. fix for 1.5 
     //data.push({title:'Video Editing', hasChild:true, test:'../examples/video_edit.js'}); 
    } 
} 

모든 작업 카메라 기능은 그러나이 페이지에 읽게 iphone

로 설정 파일에 저장을 포함하고 같은 서버 코드를보고 무엇을이 https://github.com/appcelerator/KitchenSink/blob/master/Resources/examples/xhr_fileupload.js