1

We Typically attach a files with a HTML File input and submit the form to the server with Content-Type=multipart/form-data.

However in modern way now the files start to upload via jquery ajax as soon as we select and after this the form is posted.

So what is best approach to achieve the above action at client side as well as getting the posted file at server when form is submitted to the controller action?

Regards

Khalil
  • 119
  • 1
  • 14

1 Answers1

0

I am not sure why you want before submit button click getting the posted file at server.

You can refer this

Community
  • 1
  • 1
Amol
  • 1,431
  • 2
  • 18
  • 32