• ramakrishna.kini.ul1.3928312390456768E12
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

Hey all,

This is similar to my thread from last night, but the question has changed a bit. So I have a visualforce page with a regular old file input. When the form is submitted, it posts to a visualforce page attached to an apex controller. When the apex controller evaluates the file form field, it gets a reference to a temporary file, like 

/home/sfdc/salesforce/sfdc/jsp/form/form1091191222.tmp

How would I take that file reference and do something with it? Like actually get the contents of it so I can create an attachment. Or extract the name of it? Any thoughts are much appreciated as I am a bit stuck. Thanks ahead of time!