Skip to content

fileupload() is not function #101

@raoaamirmuhammad

Description

@raoaamirmuhammad

I have the following jquery gems in my Gemfile
gem 'jquery-rails' gem "jquery-ui-rails" gem 'jquery-fileupload-rails'

I added in my application.js
//= require jquery-fileupload/basic

Form is
<%= form_with model: @xyz, html: { multipart: true, id: "fileupload" } do |f| %> <% end %>

and the script is
<script> $(function() { $('#fileupload').fileupload(); }); </script>

I got error
Screenshot from 2019-09-17 10-21-34

I am using activestorage, not carrierwave
Can anyone help me here

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions