Download & Extend

Uploadpath doesn't move file to correct path when editing a node

Project:Upload path
Version:6.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

For example:
I am using Taxonomy and I have a flat list of vocab setup called Category which displays a list box of those categories when I create/edit the node. I have a path setup like so: [type]/[term-raw] for a content type, lets call it Document.

I create a new content type Document.
Give it my title
Select which category I want it in from the dropdown list of Taxonomy terms. let's call the category 'Food'
I upload a file then hit save.
The file shows up under sites/default/files/document/Food .... as it should

If i go back and edit that node and all I do is choose a different category say.... 'People' the file remains in sites/default/files/document/Food

I don't see how this kind of behavior is a feature so that's why I am submitting it as a bug.

Comments

#1

I have attached a patch that fixes this problem.

AttachmentSize
uploadpath-properly-move-files.patch 644 bytes

#2

Dear sir,

I've used Upload Path for a while, but the path doesn't work.

Drupal Version. 6.14

Is there any idea for correcting it ?

AttachmentSize
01.jpg 121.87 KB
02.jpg 35.65 KB

#3

me too, same problem,
i set : users/u[user-id]
but still upload file under files/

#4

I am having the same issue.

Drupal version 6.15

#5

Same issue using ddblock. My uploaded images do not go into the stated file path. Any word on this?

Thanks,
Andrew