Arjun Komath
Posts: 0
Joined: Mon Jul 21, 2014 5:57 am

Retrieve the file id after uploading the file?

I'm trying to add product details and also an image with it, so I created two separate service :

  1. To upload photo

  2. To add product details into the products collection.

    I need to add the file id also to the product collection, so that I can retrieve the photo along with the product details.

    How can I do this ?

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

Retrieve the file id after uploading the file?

Hi Arjun,

Service that creates a file returns parameters 'filename' and 'fileurl' that you can receive and handle (for example, save in localStorage).

Arjun Komath
Posts: 0
Joined: Mon Jul 21, 2014 5:57 am

Retrieve the file id after uploading the file?

And then how do I display it in another page ?

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

Retrieve the file id after uploading the file?

Arjun,

You can use localStorage to pass data:
http://devcenter.appery.io/tutorials/...

Arjun Komath
Posts: 0
Joined: Mon Jul 21, 2014 5:57 am

Retrieve the file id after uploading the file?

I tried to add filename and fileurl in response.. and I'm getting an undefined value.

Arjun Komath
Posts: 0
Joined: Mon Jul 21, 2014 5:57 am

Retrieve the file id after uploading the file?

I tried to add filename and fileurl in response.. and I'm getting an undefined value.

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

Retrieve the file id after uploading the file?

Hello Arjun,

Could you please provide us with screenshots for better understanding of this issue?

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

Retrieve the file id after uploading the file?

Hi Arjun,

Did you solve this?

Return to “Issues”