• Leno, Elite SysAdmin
  • NEWBIE
  • 10 Points
  • Member since 2018


  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
I am a system admin and do not understand much about apex coding. Would like to clarify if it is an apex limitation that disallow uploading of document more than 6MB?

The VF page coding as below.
<apex:tab label="2. Upload File" name="step2" id="tabTwo" styleClass="upload-content" disabled="{!IF(ValidToken == false, true, (IF(gc.size == 0, false, true)))}">
                        <div class="standard-padding">
                            <apex:form id="form-upload">
                                <apex:pageBlock >
                                    <div class="action-container">
                                        <apex:actionFunction name="ChangeCount_JS" action="{!ChangeCount}"/>
                                        <apex:pageblocksection >
                                            <apex:pageBlockSectionItem >
                                                <apex:outputLabel value="How many files you want to upload?"/>
                                                <apex:selectList onchange="ChangeCount_JS() ;" multiselect="false" size="1" value="{!FileCount}">
                                                    <apex:selectOption itemLabel="--None--" itemValue=""/>
                                                    <apex:selectOptions value="{!filesCountList}"/>
                                                </apex:selectList>
                                            </apex:pageBlockSectionItem>
                                            
                                        </apex:pageblocksection>
                                        
                                        <apex:pageBlockSection title="Select Files (5mb per file max)" rendered="{!IF(FileCount != null && FileCount != '', true , false)}">
                                            <apex:repeat value="{!allFileList}" var="AFL">
                                                <apex:inputfile value="{!AFL.Body}" filename="{!AFL.Name}" contentType="{!AFL.ContentType}"/>
                                                <br/>
                                            </apex:repeat>
                                        </apex:pageBlockSection>
                                            
                                        <br/>
                                        <br/>
                                        <br/>
                                        <br/>
                                        <center>
                                            <apex:commandButton styleClass="submit" onclick="this.value = 'Uploading...'" value="Upload file" action="{!UploadFile}" />
                                        </center>
                                        <br/>
                                        <br/>
                        
                                        <br/>
                                    </div>
                                </apex:pageBlock> 
                            </apex:form>
                        </div>

 
I am a system admin and do not understand much about apex coding. Would like to clarify if it is an apex limitation that disallow uploading of document more than 6MB?

The VF page coding as below.
<apex:tab label="2. Upload File" name="step2" id="tabTwo" styleClass="upload-content" disabled="{!IF(ValidToken == false, true, (IF(gc.size == 0, false, true)))}">
                        <div class="standard-padding">
                            <apex:form id="form-upload">
                                <apex:pageBlock >
                                    <div class="action-container">
                                        <apex:actionFunction name="ChangeCount_JS" action="{!ChangeCount}"/>
                                        <apex:pageblocksection >
                                            <apex:pageBlockSectionItem >
                                                <apex:outputLabel value="How many files you want to upload?"/>
                                                <apex:selectList onchange="ChangeCount_JS() ;" multiselect="false" size="1" value="{!FileCount}">
                                                    <apex:selectOption itemLabel="--None--" itemValue=""/>
                                                    <apex:selectOptions value="{!filesCountList}"/>
                                                </apex:selectList>
                                            </apex:pageBlockSectionItem>
                                            
                                        </apex:pageblocksection>
                                        
                                        <apex:pageBlockSection title="Select Files (5mb per file max)" rendered="{!IF(FileCount != null && FileCount != '', true , false)}">
                                            <apex:repeat value="{!allFileList}" var="AFL">
                                                <apex:inputfile value="{!AFL.Body}" filename="{!AFL.Name}" contentType="{!AFL.ContentType}"/>
                                                <br/>
                                            </apex:repeat>
                                        </apex:pageBlockSection>
                                            
                                        <br/>
                                        <br/>
                                        <br/>
                                        <br/>
                                        <center>
                                            <apex:commandButton styleClass="submit" onclick="this.value = 'Uploading...'" value="Upload file" action="{!UploadFile}" />
                                        </center>
                                        <br/>
                                        <br/>
                        
                                        <br/>
                                    </div>
                                </apex:pageBlock> 
                            </apex:form>
                        </div>