Try our conversational search powered by Generative AI!

EPiServer Forms File Upload


Hello people! :)

So I installed EPiServer forms and created a form which works, but the problem is the file upload.

How do I upload doc, docx, pdf files?

When I submit the form the only files that it gets is images such as jpg, but when I upload a pdf or docx it doesnt show up in form submissions?

The file extenesions are not blocked, they are allowed, what do I do?

Best Regards

Jan 29, 2016 9:26

Just tested this in a plain Alloy 9.2 site with Episerver.Forms and I get docx and pdf uploads into the form submissions.

You're sure you added the file extensions as comma-separated, with no periods (.) ?

"docx, pdf"

I'm guessing you've tried it with file sizes below the maximum set in your web.config (or in your forms setup) - otherwise you'd get an error when submitting.

Are you getting a submission receipt message at all - are any form data submitted when the form includes a file upload?

Do you have any additional confirmation steps like sending email or something?

Jan 29, 2016 10:31

Yes, no periods.

I get no errors att all, "submit successful" is the message I get when submitting so everything is as it should, except it's not working.

I haven't done the email part, I only get the submitted forms in the Form Submissions section for now.

But the files should be included in the form subsmissions if it will be sent by email right?

The images that I upload appears in Forms Submissions, but all other files doesn't appear at all, it shows blank.

Jan 29, 2016 10:49

Yes the uploaded files should appear as clickable links in the forms submissions. 

So when submitting, you get the data in, but the file column is blank?

Which version of Episerver and Forms are you on?

Jan 29, 2016 10:51

Yes, all blank.

Latest version of both.

EpiServer is 9.6.1 and Forms is

Edited, Jan 29, 2016 11:11

Solved the problem!

I didnt have the Generic Media Type model in my project.

Jan 29, 2016 13:26
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.