Drupal Answers is a question and answer site for Drupal developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am adding files to a file field in my node object. Do I have to specify a path for the file(s)? Can't I just add the files to the DB and just add the file objects to the node? I'd rather let Drupal care about the file system.

share|improve this question
up vote 2 down vote accepted

No, you don't have to specify a folder, file field will use 'sites/default/files' by default. In the file field settings there is a textfield to set a subfolder if needed.

share|improve this answer
Is it smart enough, if it has to use the file system, to keep file names unique? – vintorg Jan 11 '13 at 19:17
yes, it should keep filenames unique. – 2pha Jan 13 '13 at 1:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.