Page 2 of 2

How to display uploaded file in files_DB in app

Posted: Sun Aug 17, 2014 10:05 pm
by Yurii Orishchuk

Hi R2R,

Here is wrong things:

1 You link "orignalFileName" but you need to link "fileName" column. See details: http://prntscr.com/4dtj01/direct

2 Currently you get "fileName" for "create" service directly from input component. That's not right. You need to get this "fileName" from "uploadFile" service. You can get this by adding "success" event handler for "uploadFile" service with following code:

pre

//Here you can see what is stored in "uploadFile" service response. Then you can get "fileName" and store it to the LSV for futher use.
console.log(data);

/pre

Please fix this things before continuing.

Regards.


How to display uploaded file in files_DB in app

Posted: Mon Aug 18, 2014 9:38 am
by Adrian Stoch

I just wanted to add that I used the feedback in this thread to execute the same function - to display images from the database. Thanks Yuril.


How to display uploaded file in files_DB in app

Posted: Mon Jul 13, 2015 8:53 am
by Nisa Khalid

how to get the filename how to store the filename into another collection'?


How to display uploaded file in files_DB in app

Posted: Thu Jul 16, 2015 1:02 pm
by Evgene Karachevtsev

Hello Nisa,

Please check this post, hope this is what you need:
https://getsatisfaction.com/apperyio/...


How to display uploaded file in files_DB in app

Posted: Fri Apr 08, 2016 3:19 am
by Felippe Mendonça

Hi, Yurii! This is really important to me at the point I find myself in my app.
I am able to upload a file, no problem. But I don't know how to get the FileName (not the original) after uploading it. Where should I use "console.log(data);" ? Do I put it in a "Run Javascript" event in "success"? Before or after mapping? What else should I do if I want to map the FileName into a local storage called, for example, "PicName" so I can use it later?

Thanks!