-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
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}
Metadata
Metadata
Assignees
Labels
No labels