Page 3 of 3

The File Input component not working on device

Posted: Wed Jul 16, 2014 2:25 am
by adam griffin

Im not sure what I am looking at o_0


The File Input component not working on device

Posted: Wed Jul 16, 2014 3:20 am
by adam griffin

This link helps https://getsatisfaction.com/apperyio/.... Now I am having trouble getting the created url from the success


The File Input component not working on device

Posted: Wed Jul 16, 2014 11:40 am
by Evgene Karachevtsev

Hello Adam,

Could you please detail what troubles do you have?


The File Input component not working on device

Posted: Wed Jul 16, 2014 2:58 pm
by adam griffin

In the win(r) function there is r.response. I alert the variable and see response={filename:"", filurl:""} im trying to get the created fileurl from the response. I tried using r.response[0].fileurl it didnt work. How can I get the fileurl?


The File Input component not working on device

Posted: Wed Jul 16, 2014 7:09 pm
by Kateryna Grynko

Hi Adam,

It works properly for us, tested on Android 4.0.x and Android 4.4.x.

Could you please make sure you do everything correctly?
Please check if file is saved to Database.


The File Input component not working on device

Posted: Wed Jul 16, 2014 7:17 pm
by adam griffin

It saves perfectly into the database. It even shows the filr url in the alert (r.response); but I am trying to get just the fileurl from the r.response. I see response={filename : " nameOfFile", fileurl:"api.apppery.blah"} from the alert. I am trying to just get the fileurl from the r.response. How can I do this?


The File Input component not working on device

Posted: Wed Jul 16, 2014 8:16 pm
by Kateryna Grynko

Hi Adam,

You have a json string in r.response, just parse it and use:prevar response = JSON.parse(r.response);
alert(response.fileurl);/pre