Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Lesley 105 posts 347 karma points
    Jul 05, 2018 @ 01:13
    Lesley
    0

    File upload not working

    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.

    enter image description here

    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?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies