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.


1 Answer 1


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.

  • Is it smart enough, if it has to use the file system, to keep file names unique?
    – vintorg
    Commented Jan 11, 2013 at 19:17
  • yes, it should keep filenames unique.
    – 2pha
    Commented Jan 13, 2013 at 1:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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