The input is not a valid Base-64 string as it contains a non-base64 character?

后端 未结 3 1180
深忆病人
深忆病人 2021-01-01 13:27

I have a form where a user can upload a file to the sites download section. However when the form is submitted I get this error, without the request ever making it to the ac

3条回答
  •  佛祖请我去吃肉
    2021-01-01 14:19

    You could try removing the HttpPostedFileBase from the controller method and use Request.Files[0] and see if that makes a difference.

    Honestly though I dont'see why this would be failing unless there is something that is causing it within your Model.

    Also, nit picking here but DownloadFile should be downloadFile on your form and in your controller method.

提交回复
热议问题