Skip to content

How does it work? #8

Description

@AlexCppns

I am not familiar with how file upload works but I have been testing that library and my backend does not seem to understand the format of the file object being sent, usually I expect something like this in the params sent to the backend:

"image"=> #<ActionDispatch::Http::UploadedFile:0x007fb3a2af0228 @tempfile=#<Tempfile:/var/folders/hr/6tvwjdk966q3p5z2hgz4gfgc0000gp/T/RackMultipart20150217-51414-4b4l8>, @original_filename="DAA_1412_BYOS_NTL_Dodge_tablet_300x250_EN.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"creative[image]\"; filename=\"DAA_1412_BYOS_NTL_Dodge_tablet_300x250_EN.jpg\"\r\nContent-Type: image/jpeg\r\n">

but this time I got:

"image"=> {"webkitRelativePath"=>"", "lastModified"=>1418849917000, "lastModifiedDate"=>"2014-12-17T20:58:37.000Z", "name"=>"DAA_1412_BYOS_NTL_Dodge_tablet_160x600_EN.jpg", "type"=>"image/jpeg", "size"=>20060}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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