Closed (fixed)
Project:
Mobile Codes
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
23 Mar 2009 at 01:47 UTC
Updated:
13 Apr 2011 at 11:31 UTC
From: http://drupal.org/node/409958#comment-1386470
By: haggins
I wonder if there's a method to get the http status code of the nokia.com request. I think file_save_data() will create a file even when $image->data contains no image data. If so then this http code should be returned, too.
Thinking about all of it the return value should be an array:
return array(
'image' => theme('image', $file, $arguments['name'], $arguments['name'], NULL, FALSE),
'file' => $file,
'status' => $image->code,
);
Comments
Comment #1
deciphered6.x-2.x will display an error if request is unsuccessful.