Private files support

thekk - November 15, 2007 - 21:43
Project:Inline
Version:5.x-1.1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

Imagecache now also supports private downloads, currently only in HEAD, but hopefully this will trickle to a normal release also. The discussion took place in this bugreport.

I've taken the latetst (bleeding edge) version and tested it with the inline module. The cropping of images works superbly, but the link to the complete image is broken if the file is outside the websites root directory. This can be fixed using a simple patch. You can find it attached.

I doubt it breaks anything, but better safe then sorry, thus: 'code needs review'.

AttachmentSize
goodurl.patch411 bytes

#1

sun - November 19, 2007 - 02:48

Looks good! However, I did not yet test it myself.

I need at least someone else confirming that this patch does not break existing sites in front of committing it.

#2

sun - January 7, 2008 - 02:06

This has been a bit harder to resolve cleanly. Please test attached patch.

AttachmentSize
inline-DRUPAL-5.absolute-path.patch 1.53 KB

#3

ezra-g - August 11, 2008 - 18:47

This patch works for me!

#4

ezra-g - August 11, 2008 - 18:50

Actually, I had 5.x.2 Dev installed before installing 5.x-1.1 -- I saw the fulll sized image display correctly with private files, but after clearing the menu cache I got a WSOD because of _imagecache_get_presets() -- I'm using imagecache 2. Hope this is still helpful.

#5

ezra-g - August 11, 2008 - 19:19

I've submitted #293966: Private files support with does the same thing for the 5.x-2.x branch.

#6

sun - August 17, 2008 - 15:33
Title:Use correct URL on private downloads» Private files support

#137173: Path issues with private files? has been marked as duplicate of this issue; contains an earlier patch (attempt) to fix this issue.

#7

sun - October 15, 2008 - 13:53

Hrm. I need someone (else) to confirm that this patch does not break existing sites. :/

#8

sun - August 12, 2009 - 03:02
Status:needs review» duplicate

Marking as duplicate of #439928: Private Files Support.

 
 

Drupal is a registered trademark of Dries Buytaert.