Closed (fixed)
Project:
Mobile Codes
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Mar 2009 at 07:43 UTC
Updated:
29 Oct 2010 at 09:26 UTC
Jump to comment: Most recent file
Comments
Comment #1
haggins commentedI 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:
Comment #2
decipheredAgree on both suggestions.
I will try to make some time in the next few days to look further into these.
Patches are always welcome.
Comment #3
decipheredHere's a patch that adds the ability to output simply the filename. Will be committed to DRUPAL-6--1 once I have backported it for DRUPAL-5.
You have two options for outputting the file, an API call to mobile_codes_generate() (not overly recommended as it could change and break things) or via the newly supplied CCK/Views formatter.
As for the other issue, to simplify things for me, I will re-post that into a separate issue. (#410564: HTTP Status code)
Comment #4
decipheredCommitted to DRUPAL-6--1 and DRUPAL-5.
Comment #5
haggins commentedworks pretty well. thanks for the quick patch!
Comment #7
calexo commentedHi !
I don't manage to just get the image filename.
How could I call mobile_codes_generate ?
Thanks alot !
PS. My idea is to get 2 filenames for 2 sizes, and then using a lightbox display.