Closed HarveyEV closed 8 years ago
All that renders is the noscript button which is not visible obviously:
<noscript><input type="file" name="image"/></noscript>
yeah. Github strips backticks. The snippet call posted above is correct.
It appears the js is not being appended to the body when called in a modal window.
It is a bit difficult to answer on this, since I don't know how you create the modal: You have to load the assets/components/ajaxupload/js/web/ajaxupload.min.js
script on the page that displays the modal. And you have to make sure that the AjaxUpload config script is executed in the modal.
Yeah I manually loaded the css and js and the buttons are rendering now. Next for the Formit hooks... Thx.
I have a bootstrap modal into which I load a resource with a formit form containing the ajaxupload snippet. However none of the buttons render in the form. When I use a plain resource not loaded in a modal the buttons render fine.
My snippet call is :
[[!AjaxUpload? &uid=
image&allowedExtensions=
jpg,jpeg,png,gif&thumbX=
75&thumbY=
75&maxFiles=
1]]