Skip to content

Invalid byte sequence in US-ASCII with file upload #2

@thillerson

Description

@thillerson

When uploading a file I get this error:

/!\ FAILSAFE /!\  2009-07-03 09:31:48 -0600
Status: 500 Internal Server Error
invalid byte sequence in US-ASCII
/Users/tonyh/work/captioncontest/vendor/gems/rack-1.0.0/lib/rack/utils.rb:324:in `=~'
/Users/tonyh/work/captioncontest/vendor/gems/rack-1.0.0/lib/rack/utils.rb:324:in `block in parse_multipart'
/Users/tonyh/work/captioncontest/vendor/gems/rack-1.0.0/lib/rack/utils.rb:319:in `loop'
/Users/tonyh/work/captioncontest/vendor/gems/rack-1.0.0/lib/rack/utils.rb:319:in `parse_multipart'
/Users/tonyh/work/captioncontest/vendor/gems/rack-1.0.0/lib/rack/request.rb:141:in `POST'
/Users/tonyh/work/captioncontest/vendor/gems/rack-1.0.0/lib/rack/methodoverride.rb:15:in `call'
/Users/tonyh/work/captioncontest/vendor/rails/actionpack/lib/action_controller/params_parser.rb:15:in `call'

I'm using:
Ruby 1.9.1p129 (2009-05-12 revision 23412) [i386-darwin9]
RubyGems version 1.3.1
Rack version 1.0
Rails version 2.3.2
Active Record version 2.3.2
Action Pack version 2.3.2
Active Resource version 2.3.2
Action Mailer version 2.3.2
Active Support version 2.3.2

I get this error when testing with cucumber/webrat and also through Webrick (since I haven't gotten Mongrel working)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions