Add file upload to Orchard module?

Hi, I am currently working with the CyberStride.Contacts module in Orchard and am trying to add a file upload to a form, but it seems that the problem is that the files never load. Can someone successfully add a download file to a module in Orchard if you could share how you did it. Thanks.

+7
source share
2 answers

To be able to upload a form, this form must be multi-part. That's why it does not work without a couple of tricks.

You can find an example of loading a file in this module: http://orchardproject.net/gallery/List/Modules/Orchard.Module.Contrib.ImageField

+3
source

Note that there is a FileUpload field here: http://orchardproject.net/gallery/List/Modules/Orchard.Module.Contrib.FileField

After installing this

  • Click "Content Types" in the control panel.
  • Click "Edit" on the "Contact Page" page.
  • In the fields, click "Add" and add the File field . Here it is!

When you add a contact form, the file upload field will be automatically displayed.

+2
source

All Articles