You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hoping this is an easy one.. the APIs I'm building requires a facility to upload and download files, but i'm having trouble getting send_file to work (not including the right stuff).
Or is there a better way to support file sending?
Right now, i'm including
include ActionController::Instrumentation
include ActionController::Streaming
include ActiveSupport::Notifications
In my controller (which inherits from RB)
But running my download method results in this error:
{"error":"system","error_description":"super: no superclass method `send_file' for #<AssetsController:0x007f89f42a5eb0>"}
I see the super call in instrumentation.rb, but not sure what else needs to be included.
Ideas? And curious how I'd have debugged this on my own..
The text was updated successfully, but these errors were encountered:
Looking at the code for actionpack and the area, try including Instrumentation post-Streaming - basically, for the super to work, it needs the send_file method to be defined first, which is what including ActionController::Streaming will do.
Hey guys-
Hoping this is an easy one.. the APIs I'm building requires a facility to upload and download files, but i'm having trouble getting send_file to work (not including the right stuff).
Or is there a better way to support file sending?
Right now, i'm including
In my controller (which inherits from RB)
But running my download method results in this error:
I see the
super
call in instrumentation.rb, but not sure what else needs to be included.Ideas? And curious how I'd have debugged this on my own..
The text was updated successfully, but these errors were encountered: