I was upgraded Drupal 4.6 to 5.1.

I think that changing a File system path would cause an issue because inline module stores an image file into a directory like 'files', so the field value of the database is like files/your_image.jpg.

When I change a directory of the File system path in Site configuration of Drupal's administer menu, the images are not shown because files/your_image.jpg is still keeping the same.

I think we need to fix this issue with putting some file_directory_path() functions into inline module.

I created the patch, so I hope it would be reviewed.

CommentFileSizeAuthor
file_directory_path.patch1.75 KByas

Comments

sun’s picture

Status: Needs review » Closed (won't fix)

Inline does not store or alter any database entries. It's upload.module, which handles the storage of files.
There is a warning on admin/settings/file-system which clearly indicates that changing your files directory on an existing site will cause problems:

Changing this location after the site has been in use will cause problems so only change this setting on an existing site if you know what you are doing.

If you need to change your files directory, you need to manually update your files table afterwards.