Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.x-dev
Component:
files/upload data
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 Feb 2010 at 23:02 UTC
Updated:
18 Mar 2011 at 13:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
quicksketchBecause this is a property available from the "files" database table which is provided by core, support for this would likely come from Views module itself because it provides integration with all supported core database tables.
Comment #2
dawehnerHere is a patch. Later people could add a filter/argument
Comment #3
quicksketchI dare say this should be called "extension" (i.e. "png" or "gif") instead of "file type" since that usually indicates mime type (i.e. "image/png" or "image/gif").
Comment #4
dawehnerIt sounds better, that's true.
Comment #5
quicksketchAnd one minor details, this should just be
// $Id$The added space would probably prevent CVS from filling it in properly upon commit.
Comment #6
dawehneraaah i wondered why i had changed this snippet but i think this was just totally wrong.
Thanks for the review and this code style update.
Comment #7
blup commented+1 for this patch
Comment #8
bojanz commentedA bit redundant? "The extension of the file." would match the other help texts.
"File: File extension" could then also be "File: Extension".
But this is all nitpicking...
Other than that, the patch applies cleanly and works nicely.
Comment #9
dawehnerUpdate
Comment #10
dawehnerYet another rerole
Comment #11
bojanz commentedAwesome.
Comment #12
merlinofchaos commentedCommitted to 6.x-3.x -- needs porting to D7.
Comment #13
aspilicious commentedTried to port this, but couldn't figure out the new structure.
file_managed vs file_uasge and stuff...
At least I tried
Comment #14
dawehner@aspilicious
Ping me on irc whenever you have some problems with porting patches
Ported and fixed.
Comment #16
Troy commentedI am having this problem. I want my users to be able to see the filename extension, but it isn't showing up. I read through this post hoping to find an answer, yet I am still coming up short. Anyone else had this problem with their extensions?