Currently the path where the files are saved looks like this: www.mysite.com/sites/default/files/[date when the file is uploaded]/[filename].

Is there anyway to remove the "date when the file is uploaded" directory and save it directly on the files directory?



Yes You can just follow few steps given below :

  1. Go to Structure > Content-Type
  2. Click on Manage Fields of {{Custom Content Type}}.
  3. Edit the file field . From File directory remove [date:custom:Y]-[date:custom:m].
  4. And you will end up with storing files under files directory
| improve this answer | |

Also you can add your File directory name in file field configuration to save your specific uploded files in your directory under sites/default/files/[your directory ] path

| improve this answer | |

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.