Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

How to display uploaded file in files_DB in app

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.

Adrian Stoch
Posts: 0
Joined: Thu Jul 31, 2014 3:09 pm

How to display uploaded file in files_DB in app

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.

Nisa Khalid
Posts: 0
Joined: Tue May 05, 2015 1:36 pm

How to display uploaded file in files_DB in app

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

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

How to display uploaded file in files_DB in app

Hello Nisa,

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

Felippe Mendonça
Posts: 0
Joined: Mon Mar 28, 2016 11:52 pm

How to display uploaded file in files_DB in app

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!

Return to “Issues”