whyleee / Microsoft.jQuery.Unobtrusive.Ajax

Clone of Microsoft.jQuery.Unobtrusive.Ajax NuGet package for Bower
5 stars 5 forks source link

Unable to set enctype for file uploads #3

Open DMW007 opened 8 years ago

DMW007 commented 8 years ago

I need to set the enctype of the ajax request for the ability to upload images. As I found no documentation, I looked in the source code. Seems like there is no data-attribute which could replace the enctype for regular form tags like this:

<form method="POST" enctype="multipart/form-data">

It would be nice if you could add support for this like

<form method="POST" data-ajax-enctype="multipart/form-data">

gabornemeth commented 7 years ago

+1