Is anyone working on 6.x version of Upload path module?

Or are there any alternatives (different modules) which allow uploading files into subdirectories?

Comments

encho’s picture

I am interested in this as well. Looks like development is on hold.

maxiorel’s picture

I'm interested too. Maybe this (http://drupal.org/node/242582) can help us.

pobster’s picture

Status: Active » Needs review
StatusFileSize
new7.36 KB

Try this.

Pobster

sonnen’s picture

StatusFileSize
new4.23 KB

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)

greggles’s picture

Title: Anyone working on 6.x version? » Port upload path to 6.x

slightly better title.

ansorg’s picture

Hi,

I think this patch contains an error when it tries to move the file.

              if (file_move($file['filepath'], $dest, FILE_EXISTS_RENAME)) {

this line tries to move the file from old location to the new "dest". But $dest does not contain the full path

I changed that to include the default "files" path in front of the newly assembled $dest filename

              if (file_move($file['filepath'], file_directory_path() . '/' . $dest, FILE_EXISTS_RENAME)) {

Jens

ar-jan’s picture

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?

ar-jan’s picture

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?

coupet’s picture

Can we have a patch for current dev version or final working d6 package?

ar-jan’s picture

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.

greggles’s picture

@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.

ar-jan’s picture

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 ;)

greggles’s picture

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).

coupet’s picture

Thanks ArjanLikesDrupal.

sprugman’s picture

subscribing

Sirn’s picture

Updated patch for 2008-Jul-24 release.

davidwhthomas’s picture

Thanks for the interest, I will be releasing a D6 version in the near future.

davidwhthomas’s picture

Status: Needs review » Closed (fixed)

Drupal 6 development version has been released and will appear for download once the packaging script has run

ar-jan’s picture

Thanks!