function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ForceCoderForceCoder 

Documents and High Volume Customer Portal users

http://boards.developerforce.com/t5/General-Development/Documents-and-High-Volume-Customer-Portal-users/td-p/466469.

...didn't want to double post, but I see that it makes sense in this board as well.

 

Best Answer chosen by Admin (Salesforce Developers) 
ForceCoderForceCoder

See this answer: http://salesforce.stackexchange.com/a/390/154.  Might have to use http always instead of https.

 

Also, put the documents on a different server is way easier if you can do that.  Generally, that's what I do.

All Answers

Santhosh KumarSanthosh Kumar

I tested in my test org and I could download a document both as unauthenticated user as well as after the authentication. Are you sure, you have enabled the documents to the profile associated with the logged in user?

ForceCoderForceCoder

Thanks for looking in to it.  

 

I have the Documents CRUD set to Read for the authenticated profile...view all is not even an available option, so that means that they have to have the Document shared with them, right?  But, the High Volume portal user can't be included in sharing rules on standard objects.  When I set up the groups that have access to the folder that the document is in I can give access to the public user (via a Group that I created containing just the generic site user) and there is a System generated group All Customer Portal users, but it does not actually include any High Volume Customer Portal users (this is specified in the documentation).  Even selecting the All Users group doesn't work.

 

There were times that I clicked on the link to the document in my VF page and it showed up, but it turned out that it had to do with me being logged in to the org as my regular salesforce user at the same time (or recently).  When I start fresh (cleared cookies, cleared cache, new browser), I consistently got redirected to the SF login page after I am logged in as the authenticated user and I click on my VF page link to a document.

 

By the way, there is no problem with viewing images via the ImageServer servlet.

calvin_nrcalvin_nr

I think I am running into the same problem because of the high volume portal user. Did you find any solution.

ForceCoderForceCoder

See this answer: http://salesforce.stackexchange.com/a/390/154.  Might have to use http always instead of https.

 

Also, put the documents on a different server is way easier if you can do that.  Generally, that's what I do.

This was selected as the best answer
calvin_nrcalvin_nr

Thanks. I actually found that link soon after I posted here and looks like you had posted it there also.

The problem with this is I need to secure access to the file.

 

With the method given in that link, we cannot secure the files from unauthorized access.