Jump to content
  • 0

Using Authentication Can I Enable A User To View A Pdf File Hosted Within Caspio?


natx56

Question

I'm looking to enable an authenticated user the ability to view a PDF or Excel file once logged in to my Caspio app.

 

I know I can use an HTML link to a file outside of Caspio (not secure) but can I upload a PDF or Excel file that can be downloaded or viewed within Caspio?

 

Thanks!

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Hello natx56,

 

As far as I know, there is a File type in the tables.

In the article, this type is described as:

 

The File Data Type gives you the ability to associate files with a record. File fields allow your end-users to upload a file through a Web Form. The files are stored in your database and can be accessed and organized in a file directory located in the Files section of Caspio Bridge. Image files can be displayed directly in your applications. With other file types you can provide end-users with a link to download a copy of a file. Sample fields that would use File: Image, Resume, PDF_Instructions, Printable_Document...

 

If I understand correctly, you can create a table with a field of this type, create a Report DataPage with the table as a DataSource and assign an Authentication with the DataPage.

 

Then only authenticated users will be able to see the fields of the DataPage, and one of fields will contain PDF or Excel file.

Link to comment
Share on other sites

  • 0

Just to add, if you would like your users to download the file then you may add this HTML snippet in an HTML block of your authenticated DataPage

<a href="YourFile.pdf" download>Download PDF</a>

If you will use a static file, you can insert it in an app parameter and call it from the HTML block. For example.

image.png.869d161f9318d6cbadc409dd0831bc24.png

image.png.74ee7473c42474a7e1512f52fe9c99be.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...