0

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.

2

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 Jan 11 '13 at 19:17
  • yes, it should keep filenames unique. – 2pha Jan 13 '13 at 1:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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