export file is saved in the root directory instead of been saved in the sites/default/files directory

Comments

Daniel_KM’s picture

Status: Active » Postponed (maintainer needs more info)

Hi,

Excuse me for the late reply.

I can't identify your issue: I use the Drupal way to save file:

$filename = file_save_data(
    '',
    "$vocabulary_name.csv",
    'FILE_EXISTS_RENAME');

and in my case, that function saves exported file in "sites/default/files" directory, so I can't reproduce your issue.

Sincerely,

Daniel Berthereau
Knowledge manager

Daniel_KM’s picture

Version: 6.x-5.4 » 6.x-5.x-dev
Status: Postponed (maintainer needs more info) » Needs review

Hi,

I can't reproduce your problem, but a patch I made to resolve another issue (#1267026: non ascii vocabularies generate wrong filename) implies a modification of the filename of the exported vocabulary and probably resolves your issue.

Sincerely,

Daniel Berthereau
Infodoc & Knowledge management