Hi, I have this problem.. I set upload image path to "flat" (upload images to files/flat) and rename to "[title]-[filefield-onlyname-original].[filefield-extension-original]", when I save the node, all files are uploaded to this location and renamed, that's right, but when i click "Upload" button in the filefield dialog section, file is not uploaded to defined folder "files/flat" but to "files" and is not renamed, is there any solution for this? Many thanx, my files folder is getting huge, and some of thepictures are now saved to "files/flat" and other ones to "files".. depending what method user choose (Upload button prior saving the node, or saving the node.

Comments

quicksketch’s picture

Project: FileField » File (Field) Paths
Version: 6.x-3.1 » 6.x-1.x-dev

This sounds like a request intended for FileField Paths. FileField itself does not support anything other than [user*] tokens.

deciphered’s picture

Status: Active » Closed (works as designed)

czeky,

FileField Paths doesn't act until you save the Node as the Node Tokens (such as [title], etc) aren't known until this point. This is expected behavior.

Cheers,
Deciphered.