Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm working with Gravity Forms to allow unregistered users to upload various file types: A. Actually files like PPT, PDF, DOC, PNG B. Entering a URL of an existing Youtube video

The form we created become a draft waiting to be published. We're now looking for a way to be able to:

  • In case it's an actual file like PPT embed a file viewer (a-la slideshare), and automatically add a preview picture of the contents of the file.

  • In case it's a video, obtaining a frame from the video for a preview.

Any suggestion on how to do this? Thanks,

share|improve this question

closed as too localized by toscho Feb 18 '13 at 23:40

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

3  
You will have to use the gform_pre_submission action hook which runs after you submit your form to parse the $_FILES array and achieve what you are trying. –  Rutwick Gangurde Nov 12 '11 at 6:00