Working File Upload without deprecated JavaScript
I have a big problem getting any FileUploads to work since I upgraded to Vanilla 2.1. All plugins I found are hopelessly outdated and rely on a completely deprecated JavaScript from 2007 - namely the 'jquery.popup' source:
Facebox (for jQuery) version: 1.0 (12/19/2007)
...which means none work, because it relies on a very old jquery version. I have tried FileUpload and Uploader. Is there any plugin I am missing or is there really no working fileupload / attachment functionality available for Vanilla? And I am explicitly not talking about some backend problems, it is the frontend that is completely unusable.
Best Answer
-
vrijvlinder MVP
Usually the jquery library issue happens when you have some other jquery conflicting.
The biggest issue I noticed is if you use this
$( document ).ready(function()
instead of using this.jQuery(document ).ready(function($)
Since other vanilla parts use the same library, I wonder why the whole forum is not broken but just the uploader part.
5
Answers
This may help:
http://vanillaforums.org/discussion/28532/a-mod-to-file-upload-version-1-8-4-to-make-it-work-with-vanilla-2-1-5#Item_0
That just deals with backend problems. My problems originate from the 8 year old JavaScript libs that do not work with a halfway recent jQuery version. :-(
OK
I don't use it, but it seems others have managed to get it working with recent versions of Vanilla.
Usually the jquery library issue happens when you have some other jquery conflicting.
The biggest issue I noticed is if you use this
$( document ).ready(function()
instead of using this.jQuery(document ).ready(function($)
Since other vanilla parts use the same library, I wonder why the whole forum is not broken but just the uploader part.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
That was really helpful. Although it was not something quite so easy it seems to be a conflict of the themes' jQuery needs and Vanilla's own. It was quite a bit of work to make both play nice with each other but for now everything works fine! Thanks for the help, both of you!