How to link to file uploaded URL?

I would like to make a user to upload PDF files and make it shown in the app.
I made successful with uploading using “file picker”.
Now that I would like to show the pdf in the app - its OK that only the first page is shown… but is it possible to make actions to open link of the file URL which is automatically assigned when uploaded?


Thank you very much for your support!

Actually you can embed google pdf viewer for files with .pdf extension. Use the embed web component to display it.
https://docs.google.com/viewer?embedded=true&url=PDFLINK

2 Likes

Please also note it looks like you’re using a Multiple Files column. I’m not sure the expected behaviour from your side when you have multiple files and you want to display them in the app. You would need a way to navigate between files?

1 Like

Thank you very much for your reply.
I tried web embed component, but I still cannot choose a column with URL link in data.


That’s a Multiple Files column, it holds an array of URLs.
If you just have one, use a Single Value column to select the first item from the array, and then use that in the Web Embed component.

2 Likes

Thank you for your reply.
I’m using a Multiple Files column because I did not see a “single” file column…
Only one file will do. I do not need multiple files to navigate between them.

I just want to display or navigate to show whole PDF file.

If you will only ever have one file, then you can use either a URL column, or even a normal Text type column.

Here are a few things you should pay attention to:

  1. Do not use a multiple file column, as this column is of array type. Change it to a regular text column or use a single value column as mentioned by Darren.
  2. You need to add a template column where you replace the “PDFLINK” code I provided with your URL column as a string.

2 Likes

Thank you very much! I will try this out.

Thank you very much!
I made it!!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.