+ Start a Discussion
V AnandV Anand 

how to display large document in force.com sites?

I am displaying documents in force.com sites but  large document with size 300kb  not displayed in sites.

I got the error like  Error: Insufficient Privileges .  Small size documents are  displaying perfectly but  large size documents are not displaying............


How to print large size documents in force.com sites.

my apex code is

 public transient list<document> doc {get;set;}
         public list<document> getFile() {
     
            doc = [SELECT Id, Name, Description, ContentType, Type, Url, BodyLength, Body ,keywords
                    FROM Document where name like 'a%'];
                 
           return doc;            
        } 

 

<apex:dataTable value="{!file}" var="item3"> 

   <apex:outputLink target="_blank" value="/servlet/servlet.FileDownload?file={!item3.Id}">  document view  </apex:outputLink>                                         

      </apex:dataTable>

 

Please help me !.....

Alexander_EAlexander_E

I have just the same issue...