Archived from the Transloadit support forum. Originally posted on February 10, 2011; details may be outdated, see our docs for current behavior. Original thread
Hi, I was testing transloadit from an iPhone Xcode project. I was able to send a request to create a thumbnail image, but the response I received differs from the response logged at your site.
The main difference is that the “results” field was empty, e.g. “results = { }”, whereas the “results” field reported at your site for the assembly contains a lot of information.
This is the full response I obtained, versus the one at your site (omitting sensible info).
Response I obtained:
{
"assembly_id" = ...;
"assembly_url" = "http://api2.vivian.transloadit.com/assemblies/aa158...";
"bytes_expected" = 192394;
"bytes_received" = 192394;
"client_agent" = "Transloadit 1.0 (iPhone Simulator; iPhone OS 4.0.2; en_US)";
"client_ip" = "...";
"client_referer" = "";
"execution_duration" = "";
fields = {
};
message = "The assembly is currently being executed.";
ok = "ASSEMBLY_EXECUTING";
results = {
};
"start_date" = "2011/02/07 20:14:11 GMT";
"upload_duration" = "3.433";
uploads = (
{
basename = "iphone_image";
ext = jpg;
field = "upload_1";
id = ...;
meta = {
aperture = "";
city = "";
country = "";
"country_code" = "";
"date_file_created" = "";
"date_file_modified" = "2011/02/07 20:14:14 GMT";
"date_recorded" = "";
description = "";
"device_name" = "";
"device_software" = "";
"device_vendor" = "";
"exposure_compensation" = "";
"exposure_mode" = "";
"exposure_time" = "";
"f_number" = "";
flash = "";
"focal_length" = "";
"frame_count" = "";
height = 768;
iso = "";
keywords = "";
latitude = "";
"light_value" = "";
location = "";
longitude = "";
"metering_mode" = "";
"shutter_speed" = "";
state = "";
title = "";
"white_balance" = "";
width = 1024;
};
mime = "image/jpeg";
name = "iphone_image.jpg";
"original_id" = ...;
size = 191927;
type = image;
url = "http://tmp.vivian.transloadit.com/upload/....jpg";
}
);
}
Response reported at your site:
{ ok, assembly_id, assembly_url, bytes_received, bytes_expected, client_ip, client_referer, upload_duration, execution_duration, fields, uploads
"id":"...",
"name":"iphone_image.jpg",
"basename":"iphone_image",
"ext":"jpg",
"size":191927,
"mime":"image/jpeg",
"type":"image",
"field":"upload_1",
"original_id":"...",
"url":"http://tmp.vivian.transloadit.com/upload/....jpg",
"meta":{
"width":1024,
"height":768,
"date_recorded":null,
"date_file_created":null,
"date_file_modified":"2011/02/07 20:14:14 GMT",
"title":null,
"description":null,
"location":null,
"city":null,
"state":null,
"country":null,
"country_code":null,
"keywords":null,
"aperture":null,
"exposure_compensation":null,
"exposure_mode":null,
"exposure_time":null,
"flash":null,
"focal_length":null,
"f_number":null,
"iso":null,
"light_value":null,
"metering_mode":null,
"shutter_speed":null,
"white_balance":null,
"device_name":null,
"device_vendor":null,
"device_software":null,
"latitude":null,
"longitude":null,
"frame_count":null
}
}
], results
"thumb":[{
"id":"...",
"name":"iphone_image.jpg",
"basename":"iphone_image",
"ext":"jpg",
"size":3557,
"mime":"image/jpeg",
"type":"image",
"field":"upload_1",
"original_id":"...",
"url":"http://tmp.vivian.transloadit.com/scratch/...",
"meta":{
"width":88,
"height":88,
"date_recorded":null,
"date_file_created":null,
"date_file_modified":"2011/02/07 20:14:14 GMT",
"title":null,
"description":null,
"location":null,
"city":null,
"state":null,
"country":null,
"country_code":null,
"keywords":null,
"aperture":null,
"exposure_compensation":null,
"exposure_mode":null,
"exposure_time":null,
"flash":null,
"focal_length":null,
"f_number":null,
"iso":null,
"light_value":null,
"metering_mode":null,
"shutter_speed":null,
"white_balance":null,
"device_name":null,
"device_vendor":null,
"device_software":null,
"latitude":null,
"longitude":null,
"frame_count":null
}
}
]
} }
Thanks for your help.
Jose Enrique