NEU-DSG / tapas_rails

Hydra Head for the TAPAS project
1 stars 6 forks source link

Calling #read or sufficiently short files errors out #6

Closed jbuckle closed 10 years ago

jbuckle commented 10 years ago

Rails handles very short file objects by writing them to strings in memory, meaning that a call to params[:file].read occasionally throws a NoMethodError. This case should be manually checked for in controller actions that deal with a file object.

jbuckle commented 10 years ago

Just kidding actually -