Joomla 3.0 custom module: file upload on ajax submitted form
问题 Currently I'm developing a custom module, containing a form and submitted 'through' ajax. the field <input type="file" id="file" name="file" accept="image/*" disabled="disabled" /> ajax submit (with json) $.ajax({ type: "POST", url: "modules/mod_custom_form/submit_form.php", data: dataString, dataType: "JSON", timeout: 6000, success: function(response) { // on success if (response.success === 1) { $('#customForm').html("<div id='message'></div>"); $('#message').html("<h2>Form sent!</h2>")