After creating an upload field, and specifying a path: "example/path"
then uploading a file, and saving the node.. the file gets uploaded to a "tmp" directory in /files and not the specified path.

What could be the problem?

Comments

anfrage’s picture

Perhaps reason within update from 3.0 to 3.1?

I've got the same problem. But it worked in July 2009! I did the update to 3.1 on 26.08.2009. On 14.09.2009 I detected that it doesn't work any more:
The path
textinklre
given in the definition of a field with field type "file" and widget type "upload file"
doesn't have any effect. Instead of this the file is saved in
sites/default/sites
which is the patch mentioned in
site configuration/file system/file system path

szczym’s picture

Category: support » bug

could any one confirm the issue ?

We are having hard time with related issue #524978: Storing file in CCK field does not honor filefield path setting

quicksketch’s picture

I'm unable to confirm this problem with the current release. We'll need more information to determine if this is a problem FileField.

arthurf’s picture

I can confirm this with media mover 6.1.x with field_file_save_file() which works under 3.0. It could be how it is getting called (field_file_save_file($filepath, $validators, $destination_path)), not sure yet.

quicksketch’s picture

Status: Active » Closed (duplicate)

This is an issue with Media Mover, not FileField. See #524978: Storing file in CCK field does not honor filefield path setting as szczym pointed to above.