Page 1 of 1
Retrieve the file id after uploading the file?
Posted: Wed Jul 23, 2014 11:19 am
by Arjun Komath
I'm trying to add product details and also an image with it, so I created two separate service :
To upload photo
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 ?
Retrieve the file id after uploading the file?
Posted: Wed Jul 23, 2014 1:47 pm
by Kateryna Grynko
Hi Arjun,
Service that creates a file returns parameters 'filename' and 'fileurl' that you can receive and handle (for example, save in localStorage).
Retrieve the file id after uploading the file?
Posted: Wed Jul 23, 2014 2:00 pm
by Arjun Komath
And then how do I display it in another page ?
Retrieve the file id after uploading the file?
Posted: Wed Jul 23, 2014 2:47 pm
by Kateryna Grynko
Arjun,
You can use localStorage to pass data:
http://devcenter.appery.io/tutorials/...
Retrieve the file id after uploading the file?
Posted: Wed Jul 23, 2014 4:25 pm
by Arjun Komath
I tried to add filename and fileurl in response.. and I'm getting an undefined value.
Retrieve the file id after uploading the file?
Posted: Wed Jul 23, 2014 5:00 pm
by Arjun Komath
I tried to add filename and fileurl in response.. and I'm getting an undefined value.
Retrieve the file id after uploading the file?
Posted: Wed Jul 23, 2014 8:58 pm
by Evgene Karachevtsev
Hello Arjun,
Could you please provide us with screenshots for better understanding of this issue?
Retrieve the file id after uploading the file?
Posted: Tue Aug 19, 2014 10:08 am
by Kateryna Grynko
Hi Arjun,
Did you solve this?