Yet Another File Upload Thread

Oh man this took a good two days to figure out but I think I got it. The giveaway was that the Dropzone.js was throwing an error and not even rendering the form on the page. The problem was that the required Javascript was not being loaded.

I had this in my base template:

{{ assets.js('bottom') }}

but I needed to add the other assets I referenced in the template so I change it to:

{{ assets.js() }}

Problem with that was that it didn’t load the Dropzone javascript, so doing this made it work:

{{ assets.js() }}
{{ assets.js('bottom') }}

After adding this line, I was able to see the file upload form field and I could submit an entry that dumped the file into my specified location.
I hope this will help someone else having problems with the upload form.

1 Like