It was a problem with the gem itself. Contacted a FileStack engineer and this is what he suggested and now it works. Just add to the controller helper that you're working with. They will notify the engineer who maintains the gem of this issue.
def export_widget(text, url, mimetype, options, &block)
options[:data] ||= {}
container = options.delete(:container)
services = options.delete(:services)
save_as = options.delete(:save_as_name)
options[:data]['fp-url'] = url
options[:data]['fp-apikey'] = ::Rails.application.config.filepicker_rails.api_key
options[:data]['fp-mimetype'] = mimetype
options[:data]['fp-option-container'] = container if container
options[:data]['fp-option-services'] = Array(services).join(",") if services
options[:data]['fp-option-defaultSaveasName'] = save_as if save_as
block.call
end
end
end
From engineer: "So maybe you can make it work by editing the application helper where it has fp-option-services, change it to fp-services for example, like this :
options[:data]['fp-services'] = Array(services).join(",") if services
The options need to be passed as a Ruby hash. For example, when utilizing this
<%= filepicker_save_link "Save", a.title, "application/pdf", { save_as_name: "exampleName", services: 'BOX'} %>