Permalink
Browse files

added vf page

  • Loading branch information...
1 parent 3457426 commit d32d0ec53a0320bb153f9538180759e8158a476b @gyges1 committed Jun 14, 2011
Showing with 30 additions and 1 deletion.
  1. +4 −1 README
  2. +26 −0 custom_page.vf
View
5 README
@@ -8,7 +8,10 @@ overview:
small sample sinatra app for Heroku that handles upload/download of files via encrypted communication (SSL, 128bit)
and encrypts/decrypts content (AES, 256bit)
-Can be customized for various asset stores, user auth and key mgmt.
+Use the custom_page.vf code w/in SFDC to create a new Tab/and VF page that will expose the Ruby app w/in SFDC.
+
+This can be customized for various asset stores, user auth and key mgmt.
+
Still needs:
Get class authorization
View
26 custom_page.vf
@@ -0,0 +1,26 @@
+<apex:page sidebar="false" showHeader="false" standardController="EncryptedFile__c" extensions="EncryptedFileExtension" recordSetVar="files">
+
+ <apex:pageBlock >
+ <apex:pageBlockTable value="{!files}" var="f">
+ <apex:column value="{!f.name}"/>
+ <apex:column value="{!f.FileURL__c}"/>
+ </apex:pageBlockTable>
+
+ <br/>
+
+
+ <fieldset>
+ <legend>Upload a new file:</legend>
+ <form action="https://filecrypt.heroku.com/upload" method="POST" accept-charset="utf-8" enctype="multipart/form-data">
+ <input type="hidden" name="user" value="{!User}" />
+ <input type="hidden" name="session" value="{!Session}" />
+ <input type="hidden" name="org" value="{!Org}" />
+ <input type="file" name="file" />
+ <input type="submit" value="upload file" />
+ </form>
+ </fieldset>
+
+ </apex:pageBlock>
+
+
+</apex:page>

0 comments on commit d32d0ec

Please sign in to comment.