Download & Extend

Creates "empty" folder when [node:title] is included in File path

Project:File (Field) Paths
Version:7.x-1.0-beta3
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

I'm having trouble with the [node:title] and that it will create an (or several) empty folder(s).

i have the following in "File path":
files/subpagefolder/[node:title]/programs
so I want the files to be placed inside "files/subpagefolder/title of the node/programs"
the problem is that [node:title] is the following
"Edit Subpage Stigfinnarna" (where Stigfinnarna is the title that I want to have in "File path".
So when I press upload, it creates following structure:
files/subpagefolder/<em>Edit Avdelningssida</em> Stigfinnarna/the_file.something
After I press Save on the node page, the file moves to:
files/subpagefolder/Stigfinnarna/the_file.something
But I leaves the folder <em>Edit Avdelningssida</em> Stigfinnarna still accessible, which is a bit annoying when someone wants to access the files thru a filebrowser on the page.

Comments

#1

Version:7.x-1.0-beta1» 7.x-1.x-dev
Status:active» postponed (maintainer needs more info)

Can you try with the latest dev version (that will come out within the next 12 hours) and if the issue still occurs can you you provide me with some reproduction steps?

I have tested on a fresh install with the latest version with your replacement pattern and can confirm that the temporary directory was deleted as it should be.

#2

Version:7.x-1.x-dev» 7.x-1.0-beta3
Status:postponed (maintainer needs more info)» fixed

I've changed the "File Patch" to "files/subpagefolder/[node:field_tagg_avd]/programs" for some time ago and that pattern works correct in 7.x-1.0-beta3
so I would like to call it fixed

#3

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.