I really don't want people to rename a folder. Because that would break every link use the files inside that folder
I just want them to rename files only.
Any way to do that?

Comments

Taxoman’s picture

Second that, should be a configurable option, preferably per role, and possibly per folder/subfolderhierarchy?

aaron1234nz’s picture

Component: Miscellaneous » Code
Category: support » feature
Status: Active » Fixed

Please try latest -dev release. I've just added this functionality. There are now two options on the IMCE profile set up screen - one for files and one for folders.

Taxoman’s picture

great, but where is the 7.x-dev branch?

aaron1234nz’s picture

Sorry, try now.

Status: Fixed » Closed (fixed)

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

per-olav’s picture

Status: Closed (fixed) » Patch (to be ported)

Could this be released as 7x-1.3? No point to just have it in the -dev, is it?

schmidtk’s picture

Status: Patch (to be ported) » Needs work

Tried out the dev version. I have a funny situation where on my local dev machine I have a different set of files than I do on my dev server. So in my case the files table doesn't match the actual files on my machine. Consequently, this threw a 500 error, presumibly because it wasn't able to select my file from the files table. Not sure how to best handle the error, but even reporting "File not found in database - contact your administrator" might be better. Error text I got:

Recoverable fatal error: Argument 1 passed to file_move() must be an instance of stdClass, boolean given, called in /sites/all/modules/contrib/imce_rename/imce_rename.module on line 115 and defined in file_move() (line 1007 of /includes/file.inc).

hefox’s picture

Version: 7.x-1.2 » 7.x-1.x-dev
Status: Needs work » Closed (fixed)

re-opening an issue to ask for a new version to be created is not a good proper of issue queue =(

#1376260: Ajax Issue when Renaming a File in Sub Folder for schmidtk