how do I view it with the emulator? But the last code I wrote is
correct?
On 3 Mar, 21:13, Simon MacDonald <
simon.macdon...@gmail.com> wrote:
> I dont 'so molto circa l'API Flickr ma che cosa stai tornandocome una risposta?Il caricamento API(
http://www.flickr.com/services/api/upload.api.html) restituisce alcunicodici di errore descrittivo.
>
> Simon Mac Donaldhttp://
hi.im/simonmacdonald
>
>
>
>
>
>
>
> On Thu, Mar 3, 2011 alle 05:49, Xeyos <xeyo...@
hotmail.it> ha scritto:> Ho provato ma niente ...> OnPhotoURISuccess funzione (imageURI) {> Baseurl var = "
http://api.flickr.com/services/upload/";> ApiKey var = "xxxxxxxxxxxx";> Segreto var = "xxxxxxxxx";> Hash var = $. Md5 (segreto + "api_key" + apiKey + "auth_token" +> Window.localStorage.getItem ("token"));> / / Url = var baseurl + "api_key =" + apiKey + "& auth_token =" +> Window.localStorage.getItem ("token") + "& api_sig =" + hash;> Opzioni FileUploadOptions var = new Date ();> Options.fileKey = "file";options.fileName> = "immagine.jpg";options.mimeType> = "image / jpeg";
>
> > Params var = new Object ();> = Params.api_key apikey;> Window.localStorage.getItem params.auth_token = ("token");> Params.api_sig = hash;
>
> > Options.params = params;
>
> > Ft FileTransfer var = new Date ();> Ft.upload (imageURI, "
http://api.flickr.com/services/upload/",> Vittoria,> Falliscono, opzioni);window.location> = "upload.html";>}
>
> > Il 2 Mar, 23:21, Xeyos xeyo <...@
hotmail.it> ha scritto:>> Scusa, ho sbagliato io.>> Ho per creare un modulo come questo, ma ho bisogno di scaricare il file>> Dalla galleria perché evidentemente il file di input non funziona.è>> Possibile?
>
> >> <Form method = post "azione" = "
http://api.flickr.com/services/upload/">>> Foto: <input type="file" name="photo" id="photo"/>>> Titolo: <input type="text" name="title" id="title"/>>> Tipo <input name = "nascosto" = "api_key" id = valore "api_key" = "API Key va>> Qui "/>>> Tipo <input name = "hidden" id = "auth_token" = valore "auth_token" = "Put Auth>> Token qui "/>>> <input Type="hidden" name="api_sig" id="api_sig" value="xxxxx"/>>> <input Type="submit" value="Upload"/>>> </ Form>>> Il 2 Mar, 22:50, <xeyo Xeyos...@>
hotmail.it ha scritto:
>
> >> Ragazzi> Sto cercando di caricare le foto su Flickr da Android.>>> Non posso accedere alla galleria e scattare una foto ma ho paura di fare>> Errori> che dovrebbe essere l'invio in POST.>>> Questo è il mio codice:
>
> >>> <!> DOCTYPE html>>> <html>>>> <head>>>> <title> ViewFlickr </ title>>>> <meta Charset="utf-8">>>> Href <link rel = "style.css" = "stylesheet" type = "text / css">>> Media = "screen" />>>> <script Type="text/javascript" charset="utf-8" src="phonegap.js"> </>>> Script>>>> <Script src = "
http://code.jquery.com/jquery-latest.jstipo "=" text />>> Javascript "> </ script>>> <script> Src="md5.js" type="text/javascript"> </ script>>>> <script Type="text/javascript">>>> Var pictureSource;>>> Var destinationType;
>
> >>> OnLoad function () {>>> Document.addEventListener ("deviceready", onDeviceReady, false);>>>}
>
> >>> OnDeviceReady function () {>>> = PictureSource navigator.camera.PictureSourceType;>>> = DestinationType navigator.camera.DestinationType;>>>}
>
> >> OnPhotoURISuccess funzione> (imageURI) {>>> Baseurl var = "
http://api.flickr.com/services/upload/?";>>> ApiKey var = "XXXXXXXX";>>> Segreto var = "XXXXXXX";>> Hash> var = $. Md5 (segreto + "api_key" + apiKey + "auth_token" +>>> Window.localStorage.getItem ("token"));>>> URL var = baseurl + "api_key =" + apiKey + "& auth_token =" +>>> Window.localStorage.getItem ("token") + "& api_sig =" + hash;>> Opzioni var> = FileUploadOptions new ();>>> Options.fileKey = "file";>>> Options.fileName = "immagine.jpg";>>> Options.mimeType = "image / jpeg";>>> FT var = FileTransfer new ();>>> Ft.upload (imageURI, url, vincere,>>> Fallire, opzioni);>>> Window.location = "upload.html";>>>}
>
> >>> Funzione capturePhoto () {>>> Navigator.camera.getPicture (onPhotoURISuccess, onFail,>>> {Qualità: 50});>>>}
>
> >>> CapturePhotoEdit function () {>>> Navigator.camera.getPicture (onPhotoURISuccess, onFail,>>> {Qualità: 20, allowEdit: true});>>>}
>
> >>> Funzione getPhoto (fonte) {>>> Navigator.camera.getPicture (onPhotoURISuccess, onFail,>>> {Qualità: 50,>>> DestinationType: destinationType.FILE_URI,>>> SourceType: fonte});>>>}
>
> >>> OnFail funzione (mesage) {>>> Alert ('non riuscita perché:' + messaggio);>>>}
>
> >>> Funzione vincere (evt) {
>
> >>> Console.log ("Codice =" + r.responseCode);>>> Console.log ("Risposta =" + r.response);>>> Console.log ("Inviati =" + r.bytesSent);>>>}
>
> >>> Funzione fail (evt) {>> Allarme> ("è verificato un errore: Code =" = error.code);>>>}
>
> >>> </ Script>>>> </ Head>>>> <body Onload="onLoad()">>>> <button Onclick="capturePhoto();"> Photo Capture </ button> <br>>>> Onclick="getPhoto(pictureSource.PHOTOLIBRARY);"> <button da Photo>>> Biblioteca </ button> <br>>>> Da onclick="getPhoto(pictureSource.SAVEDPHOTOALBUM);"> <button>>> Album fotografico </ button> <br>>>> </ Body>>>> </ Html>
>
> > -> Hai ricevuto questo messaggio perché sei iscritto a GoogleGruppi> gruppo "PhoneGap".> Per postare in questo gruppo, invia un'email a
phon...@googlegroups.com> Per annullare l'iscrizione a questo gruppo, invia un'email a> PhoneGap +
unsub...@googlegroups.com> Per maggiori opzioni, visita questo gruppo all'indirizzo>
http://groups.google.com/group/phonegap?hl=en?hl=en
>
> > Per maggiori informazioni su PhoneGap o per scaricare il codice di andare
awww.phonegap.com