Turns out that assigning the params to the procedure calls `read` on the images files. Calling `read` moves the seek offset to the end of the file; which means that subsequent calls to `read` return an empty string. Fix the issue by calling `rewind` before attempting to `read` the file, to ensure the seek offset is at the beginning of the file. Fix #4958 |
||
---|---|---|
.. | ||
assigns_controller_spec.rb | ||
attestation_templates_controller_spec.rb | ||
instructeurs_controller_spec.rb | ||
mail_templates_controller_spec.rb | ||
procedures_controller_spec.rb |