Skip to content

Uploaded Image Corrupted with JRuby 1.7.10 #37

@jimtsay

Description

@jimtsay

For those using JRuby. Image upload may not work with this gem.
Try the following code on JRuby:

f = File.open("test.png")
obj = f.read(f.size)

f.size and obj.size are not the same. It causes content-length and stream size not the same, and image file is corrupted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions