adam griffin
Posts: 0
Joined: Tue May 21, 2013 8:44 pm

The File Input component not working on device

Im not sure what I am looking at o_0

adam griffin
Posts: 0
Joined: Tue May 21, 2013 8:44 pm

The File Input component not working on device

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

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

The File Input component not working on device

Hello Adam,

Could you please detail what troubles do you have?

adam griffin
Posts: 0
Joined: Tue May 21, 2013 8:44 pm

The File Input component not working on device

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?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

The File Input component not working on device

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.

adam griffin
Posts: 0
Joined: Tue May 21, 2013 8:44 pm

The File Input component not working on device

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?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

The File Input component not working on device

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

Return to “Issues”