Hey guys,

I've a really strange issue: If I upload a file via filefield and save the node, I see the file was moved, but in my dsm($node) Drupal thinks, that the file is at "file/originalfilename".

But the filename is the nid.
Can you help me?

Thanks

Yannick

Comments

yannickoo’s picture

It seems that would Drupal not know the file as the new name. But the pathauto and transliteration thing work.

ar-jan’s picture

I just noticed this as well, I have a filefield attachment field where the uploaded file is moved and renamed properly, but on full nodeview the attachment field links to 'originalfilename.pdf' rather than the 'subfolder/nodetitle.pdf' pattern I set. Only on full nodeview is the link incorrect, another listing that includes the field (in my case, the Biblio overview) shows the correct file location.
If I remember correctly, this used to work - could this be due to recent filefield or D.6.20 changes?

serg.remote’s picture

Hi,
same issue appears for me. I'm using FileField, Insert and FileField Paths. Alias is folder/[type]/[nid]-[title]. No matter whether I use Insert or not in the full node view file path is wrong one (the one where it was initially uploaded to). However if I use Insert functionality it appears with correct path in node body.

serg.remote’s picture

upd: just found that it only has wrong appearance on the page that's initially displayed after node creation. If I refresh the page it's displayed as it should.

yannickoo’s picture

But our issues isn't fixed.

deciphered’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

No longer supporting Drupal 6 issues for this module.