Closed (fixed)
Project:
FileField
Version:
5.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 May 2007 at 19:51 UTC
Updated:
17 Sep 2007 at 13:12 UTC
Jump to comment: Most recent file
Comments
Comment #1
sirkitree commentedI've implemented this and here is the patch.
Comment #2
sirkitree commentedOk, got a little ahead of myself there, just realized that I've only got a piece of it right now: the directory gets created, but it is not uploading the file to that path. You can change the last post to (code needs work).
Comment #3
sirkitree commentedOk, here is another revision, still not quite working, but I needed to post so that i know where the heck I am on Monday... this version inserts in the $field['widget']['file_path'] in a few places i noticed needed it, but still not working completly. Any direction you can give over the weekend would be appreciated.
Comment #4
sirkitree commentedOk, this is finally working. There was one last place that needed the $field['widget']['file_path'] and now it works. Please review and post any feedback.
Comment #5
sirkitree commentedso i just saw that there was a similar issue in HEAD that one-ups this by implementing tokens as well with the filepath... guess i should look a little harder through the issues next time...
Comment #6
ray007 commentedIs anything holding up a release with this feature?
Comment #7
jpetso commentedHm... filefield's HEAD version contains all of the patch except for the parts where
file_create_path()is replaced withfile_create_path($field['widget']['file_path'])). Is this still necessary? If so, why is this needed?Comment #8
sirkitree commentedThis patch isn't still necessary, but that line,
file_create_path($field['widget']['file_path']))definitely is. Without it, I don't think the file will be created in the designated spot. Not sure why it's not in there.Comment #9
jpetso commentedOk, thanks for the patch and the additional info. I added the remaining
$field['widget']['file_path']occurrences, so everything should work correctly now. (Here's the commit.) Storing the files also worked before that, because thosefile_create_path()calls that were still there were only responsible for creating URLs. In consequence, URLs previews for files that are currently being uploaded are fixed now.Comment #10
(not verified) commented