Skip to content

Instantly share code, notes, and snippets.

@arun12209
Created June 15, 2019 06:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arun12209/252923ec9f48af23806c8901199f596c to your computer and use it in GitHub Desktop.
Save arun12209/252923ec9f48af23806c8901199f596c to your computer and use it in GitHub Desktop.
UploadImages
<!-- Name: UploadImages
Decription: Upload images in files object and show them on richtex field on record.
Created Date: 17/03/2019
LastModified Date: 17/03/2019
Created By: Arun Kumar
-->
<apex:page controller="uploadImageCntrl" sidebar="false">
<html>
<head>
<apex:slds />
<style>
.slds-scope .slds-page-header {
padding: 1rem 1rem;
/* border-bottom: 1px solid rgb(221, 219, 218); */
/* border-radius: .25rem; */
background: rgb(243, 242, 242);
background-clip: padding-box;
/* box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.10); */
border: 1px solid rgb(221, 219, 218);
}
#bodyPart{
border: 1px solid rgb(221, 219, 218);
padding:1rem 1rem;
}
</style>
</head>
<body>
<apex:form >
<div class="slds">
<div class="slds-grid">
<div class="slds-col slds-size--12-of-12">
<div class="slds-page-header">
Upload Image
</div>
</div>
</div>
<div id="bodyPart">
<apex:inputFile value="{!imageFile}" styleClass="" />
<apex:actionRegion >
<apex:commandButton value="Upload" action="{!uploadImg}" Styleclass="slds-button slds-button--brand" />
</apex:actionRegion>
</div>
</div>
</apex:form>
</body>
</html>
</apex:page>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment