Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have a form with a FileUpload field.
When the form is submitted, the selected file is not saved to the media folder, or anywhere else that I can see. It's as though the submit process is just ignoring the file.
There are no errors in the log.
Is there some special configuration that I need to do to get the FileUpload to work?
I have also tried installing Perplex Form package and using their ImageUpload field but I have the same issue.
EDIT: In FileUpload.ProcessSubmittedValue, context.Request.Files is null, but I don't know why...
HttpFileCollectionBase files = context.Request.Files
EDIT: I'm using WebForms, not MVC - could this be why?
I've got the exact same issue - can you please share if you fixed this and, if so, what the fix was.
Not entirely sure how I fixed it as it was a while ago.
I did find this comment in our source control dated the day after my original post:
" Added Razor layout pages as FileUpload only seems to work when FormPage is MVC based, not WebForms"
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted