Skip to content

Commit dffdf5e

Browse files
committed
Revert "changing helper to fix issue with filepicker_save_link"
This reverts commit 3dc44f1.
1 parent 3dc44f1 commit dffdf5e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/helpers/filepicker_rails/application_helper.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,9 @@ def export_widget(text, url, mimetype, options, &block)
258258
options[:data]['fp-url'] = url
259259
options[:data]['fp-apikey'] = ::Rails.application.config.filepicker_rails.api_key
260260
options[:data]['fp-mimetype'] = mimetype
261-
options[:data]['fp-container'] = container if container
262-
options[:data]['fp-services'] = Array(services).join(",") if services
263-
options[:data]['fp-suggestedFilename'] = save_as if save_as
261+
options[:data]['fp-option-container'] = container if container
262+
options[:data]['fp-option-services'] = Array(services).join(",") if services
263+
options[:data]['fp-option-defaultSaveasName'] = save_as if save_as
264264
block.call
265265
end
266266
end

0 commit comments

Comments
 (0)