django-filer icon indicating copy to clipboard operation
django-filer copied to clipboard

Softlink/alias/shortcut functionality

Open tehfink opened this issue 6 years ago • 8 comments

Apologies if this has already been covered: would it be feasible to implement something like "ln -s" for Files within django-filer? This would result in a similar functionality to Google Drive, e.g.: allowing a File to be present in multiple Folders without requiring multiple copies of it on the filesystem.

tehfink avatar Dec 30 '18 18:12 tehfink

You can just change the name, "save as new", and then move it to another folder. That makes two "files" with reference to the same image on the drive.

joshuajonah avatar Dec 31 '18 15:12 joshuajonah

@joshuajonah Thanks for the reply. I tried to follow your suggestion, but after editing an image's or file's name in Django 1.11.8 & django-filer 1.4.3, I don't see a "Save as new" option, only "Save and continue editing" & "Save". What exactly is your setup, that allows """two "files" with reference to the same image on the drive."""?

tehfink avatar Jan 13 '19 19:01 tehfink

Django==1.11.8, django-filer==1.3.2

https://imgur.com/a/HwWfTyH

joshuajonah avatar Jan 14 '19 15:01 joshuajonah

Thanks for the reply. I was able to enable the "Save as new" option by adding save_as=True to the ImageAdmin class in the imageadmin.py file. Unfortunately, clicking it results in a "403 Forbidden", so I'll have to dig a bit deeper…

tehfink avatar Jan 20 '19 22:01 tehfink

the save as new solution is a bit dangerous...if you remove one of them, the underlying file will be gone, leaving back the other one in an inconsistent state...

benzkji avatar May 08 '19 13:05 benzkji

@benzkji Unfortunately, version django-filer 1.4.0 removed the 'Save as new' button, so @joshuajonah's workaround isn't an option anymore.

I'm still interested in having a similar functionality to Google Drive, e.g.: allowing a File to be present in multiple Folders without requiring multiple copies of it on the filesystem.

tehfink avatar May 11 '19 13:05 tehfink

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 28 '22 18:07 stale[bot]

Would save a lot of file space!

tehfink avatar Jul 28 '22 21:07 tehfink

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 27 '22 01:10 stale[bot]

This will now be closed due to inactivity, but feel free to reopen it.

stale[bot] avatar Nov 24 '22 01:11 stale[bot]