Forums

How to view and/or email uploaded documents

swmckay 12 Aug, 2012
Hello,

I am trying to figure out how to allow a user to view a document that they have previously uploaded.

For example, at some point in the past they have logged in and uploaded a MS Word document (this step works properly for me using the 'Upload Files' action) and now they would like to view it. Since each document is created with a unique name, its seems like some sort of dynamic function with a path to the ' holding'folder and locating the specific document they've uploaded based on their cf_user_id or something to that affect.

In addition, I would like to be able to allow the user to forward said document to another user registered on my site,so again locating, pulling and then sending.

Any guidance is greatly appreciated.
GreyHead 12 Aug, 2012
Hi swmckay,

Presumably you can rebuild the path and/or url to the document using a Custom Code action. Then you can use a Custom Element element to display a link to it; or use the Download File action if you prefer.

It may be helpful if you save the file path/url for uploads in a table rather than just the file name.

Pretty much the same applies to the Email request.

Bob
swmckay 19 Aug, 2012
Bob, Bob, Bob....

At first your answer to my question seemed vague but the more I turned it over and experimented the more it made sense. Your answer pushed me in the right direction and I've solved this issue with your subtle guidance. Gracias.

I do have to ask one question...you mentioned that I can might find the "Download Action" useful. I use the "Upload Function" but I couldn't find its counterpart. If you'll permit me, was that possibly a typo committed in the wee hours of the morning?

Thanks again,

- Scott
GreyHead 19 Aug, 2012
Hi Scott,

Half a typo. There's a 'File Downloader' action in the Utilities group; right functionality, wrong name :-(

Bob
This topic is locked and no more replies can be posted.