Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.