Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
File uploaded was named isaac.jpg_w=402
It's a valid jpg file other than the odd filename.
Comment | File | Size | Author |
---|---|---|---|
#2 | filefield-1765972-2-fix-php-notice.patch | 4.22 KB | mikeytown2 |
#1 | filefield-1765972-1-fix-php-notice.patch | 4.35 KB | mikeytown2 |
Comments
Comment #1
mikeytown2 CreditAttribution: mikeytown2 commentedComment #2
mikeytown2 CreditAttribution: mikeytown2 commentedbetter version after testing it on our production servers
Comment #3
quicksketchI don't think FileField would let you upload a file like this would it? Are you just allowing all extensions?
This patch isn't really the greatest, with nested function definitions and case-specific code. Some of the code included in your patch have been incorporated into other fixed issues at this point.
Comment #4
mikeytown2 CreditAttribution: mikeytown2 commentedThe reason this is needed for us has to do with editing a story that has been imported from a feed (something outside of our control). image_type_to_extension() is a PHP 5 only function. replacing ereg_replace would be a good idea. Another patch that uses this newly created function #1766064: User error: ImageMagick reported error code 1. Message: convert: no encode delegate for this image format