Closed ut closed 7 months ago
This is universal.
tmp_new_image = File.read(attachment_changes['file'].attachable[:io])
fails live but works w/rspec
tmp_new_image = File.read(attachment_changes['file'].attachable)
works live but fails w/rspec
fixed
Stack trace
A NoMethodError occurred in images#update:
undefined method
[]' for #<ActionDispatch::Http::UploadedFile:0x00007f9bc3fea1f8 @tempfile=#<Tempfile:/tmp/RackMultipart20230701-230243-9xt28k.jpeg>, @original_filename="B4E247FB-97F4-4BB0-BE32-B8FFFF4AC319.jpeg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"image[file]\"; filename=\"B4E247FB-97F4-4BB0-BE32-B8FFFF4AC319.jpeg\"\r\nContent-Type: image/jpeg\r\n"> app/models/image.rb:66:in
strip_exif_data'