Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Template Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

JS Error - Frontend FileUpload


Go to End


2 Posts   1372 Views

Avatar
omnicurse

Community Member, 8 Posts

24 April 2014 at 12:11pm

I have an UploadField in the frontend that is returning

Uncaught TypeError: Cannot call method '_adjustMaxNumberOfFiles' of undefined
Whenever I try and upload a file.

This seems to be an issue with the third party fileupload framework. I'm running the latest build of silverstripe and the frontend file upload is pretty standard. Is this issue with me or a bug in Silverstripe?

Avatar
omnicurse

Community Member, 8 Posts

24 April 2014 at 2:52pm

Solved - Issue only occurs when blocking the default jquery-ui and using a newer version. So something funny about jquery-ui 1.10.4 doesn't play nice with the old version of fileupload.js