Port upload path to 6.x
lewmich - March 22, 2008 - 22:42
| Project: | Upload path |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
Is anyone working on 6.x version of Upload path module?
Or are there any alternatives (different modules) which allow uploading files into subdirectories?

#1
I am interested in this as well. Looks like development is on hold.
#2
I'm interested too. Maybe this (http://drupal.org/node/242582) can help us.
#3
Try this.
Pobster
#4
Attached is a unified patch that will take a stock distribution of Upload Path 5.x-1.x-dev up to a fully 6x compatible version. It includes a correction of the hook_nodeapi bug noted by mansion, but with 6x compatible code. (http://drupal.org/node/191571)
#5
slightly better title.
#6
Hi,
I think this patch contains an error when it tries to move the file.
<?phpif (file_move($file['filepath'], $dest, FILE_EXISTS_RENAME)) {
?>
I changed that to include the default "files" path in front of the newly assembled $dest filename
<?phpif (file_move($file['filepath'], file_directory_path() . '/' . $dest, FILE_EXISTS_RENAME)) {
?>
Jens
#7
From reading these threads it seems Upload path with patches is working -more or less- with D6. Will there be a D6 release anytime soon?
#8
Hi, I applied the patch and it works on my D6 site! Many thanks, I think this module provides a quite vital functionality if one wants to keep files organized on server.
One note: the current tarball is a 2008-May-05 release and rolling the patch gives some errors:
patching file uploadpath.info
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file uploadpath.info.rej
patching file uploadpath.module
Hunk #2 FAILED at 56.
I don't know how to fix the patch, I just deleted the old parts and pasted the new ones in the uploadpath.info and uploadpath.module files manually. Maybe someone can fix this for current release?
#9
Can we have a patch for current dev version or final working d6 package?
#10
Here are the 6.x patched .module and .info files.
edit: replaced with the patch: here is the patch, modified to be used on the 2008-May-05 release of UploadPath.
#11
@ArjanLikesDrupal - ideally patches should be provided as actual patches - (see http://drupal.org/patch/create ).
Also, this module is currently "Unmaintained" and will need someone to take it over from Crell. Perhaps someone on this issue can do that? If so, just 1) get a CVS account (if you don't have one point to this issue as the reason 2) contact Crell and/or file an issue in the webmasters queue about this module.
#12
Done. I had never used/created patches before so didn't know how to do so, but it wasn't hard.
As for the unmaintained status: agree, a 6.x release would also be nice. I'm afraid I'm of no use here, being at the start of my Drupal learning curve ;)
#13
Well, everyone has to start somewhere. I hope you will consider becoming the maintainer ( http://drupal.org/handbook/cvs is a good section to read to understand what is involved).
#14
Thanks ArjanLikesDrupal.
#15
subscribing
#16
Updated patch for 2008-Jul-24 release.
#17
Thanks for the interest, I will be releasing a D6 version in the near future.
#18
Drupal 6 development version has been released and will appear for download once the packaging script has run
#19
Thanks!