Jump to content

How do i setup a File upload with InputfieldFile


Harmster
 Share

Recommended Posts

Hey,

I am working on my module and i need to upload a file, a video in this case ;)

this is my code:

$video_upload = new InputfieldFile();
$video_upload->attr('name', 'file');
$form->append($video_upload);

processwire_youtube.jpg

This is what I get on my form. If i drag my video in it and the video starts playing (Google Chrome) 

Now i've gopt a few questions about this

1- How do i get a select file button in there?

2- How do i get the video in there?

Thanks in advance

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...