We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi guys,
i want to upload multiple files via c# IEnumerable<HttpPostedFileBase> and try to fix input:file name to listImages. My code like this :
IEnumerable<HttpPostedFileBase>
`var id = 0; $(".mt-repeater").each(function(){ $(this).repeater({ show: function () { $(this).slideDown(); $(this).find("textarea").attr("id", "mce"+id); $(".mt-repeater").find('input:file').attr('name', "listImages"); tinymce.EditorManager.execCommand("mceAddEditor", true, "mce"+id); id++; },
hide: function (deleteElement) { alertify.confirm('XXXXXX', 'XXXXXXXX', function() { $(".mt-repeater").find('input:file').attr('name', "listImages"); $(this).slideUp(deleteElement); }, null); }, ready : function() { $(".mt-repeater").find('input:file').attr('name', "listImages"); }, isFirstItemUndeletable: true }); });`
show works ok like this but when i delete a repeater row my first file input name changes to listElements[0][listImages]
How can prevent it or is there any proper solution for that.
Thanks in advance. Cheers.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi guys,
i want to upload multiple files via c#
IEnumerable<HttpPostedFileBase>
and try to fix input:file name to listImages. My code like this :`var id = 0;
$(".mt-repeater").each(function(){
$(this).repeater({
show: function () {
$(this).slideDown();
$(this).find("textarea").attr("id", "mce"+id);
$(".mt-repeater").find('input:file').attr('name', "listImages");
tinymce.EditorManager.execCommand("mceAddEditor", true, "mce"+id);
id++;
},
show works ok like this but when i delete a repeater row my first file input name changes to listElements[0][listImages]
How can prevent it or is there any proper solution for that.
Thanks in advance. Cheers.
The text was updated successfully, but these errors were encountered: