When I upload a file using filefield, it is uploaded to the /files directory, but only the label is redisplayed on the default output. I had anticipated that the filename and a link for downloading it would appear, much like with attachments.

Since this is CVS, I wasn't sure if it's a bug, or just something not implemented yet.

Comments

dopry’s picture

Status: Active » Fixed

try with the latest commit. I backported the formatter code provided by KarenS from imagefield. and it seems fixed locally.

eliza411’s picture

I can now see files that were uploaded before installing the latest commit. However, I can't edit those nodes or create new ones. I get Call to undefined function drupal_add_css() in /var/wallace/modules/filefield/filefield.module on line 340

Anonymous’s picture

Status: Fixed » Closed (fixed)
javierggt’s picture

Hi,

I have the same problem, I can't see the file, just the label. I'm using Drupal 4.7 with the latest version of the filefield module (the one from mid-November).

Also, I was trying to use the calculated field module to show the field value myself and I wasn't able to do it. I was defining a file field called 'archivo' and node->field_archivo is not defined.

Any idea?

seanr’s picture

Status: Closed (fixed) » Active

Seems like this is still active. Why was an anonymous user able to close it (or even post here?)

RayZ’s picture

That anonymous user is a bot that closes automatically closes "fixed" issues after a specified period of time (don't know the details).

MaskedMarauder’s picture

The problem I'm having is that when DLing the file, all I see is a rendered template without content. Mimetype isn't set in the header and its all text/html.

The correct file is there in the expected path with the correct mimetype in the files table. But it doesn't seem to do anything to make it render as the proper mimetype. A 13k application/pdf file appears as a 7k text/html to the browser.

Is there known interactions with the attachement module and phptemplate theme engine?

Can someone please point me to the correct module/hook that is used for serving a raw uploaded file? I can't figure out where the 'magic' is supposed to be happening.

dopry’s picture

Status: Active » Postponed (maintainer needs more info)

How is you field configured, how is the drupal file handling configured, which versions of CCK and filefield are you using, what platform are you running on? Can you provide directions for reproducing the error?

jpetso’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

No info in 9 months, so I have no bad conscience to close this issue.