Replacing of tmp path not working for private file handling

PeterP - September 8, 2009 - 14:50
Project:FileField Paths
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

Hi,
don't know if anyone has come across this problem or if I'm doing something wrong. Am using FilePath in combination with FileField Insert and file system is set to private. On insert FileFieldInsert inserts the tmp path to the file, on save FilePath should then replace the tmp path with the final path. Didn't work for me as in 497 the reg expression is being set up with file_directory_path() which returns "sites/default/files" for me, but the tmp path starts with "system/files". Looked for the proper function but couldn't find it right away, so I deleted file_directory_path() in the first part of regex, regex_enc and replace. Shouldn't be done that way, but works for me know. Or how is it supposted to work in my case?

#1

PeterP - December 3, 2009 - 22:00

seems to be fixed in the new dev version, thanks!

#2

PeterP - December 3, 2009 - 22:02
Status:active» fixed

marking as fixed

#3

Deciphered - December 11, 2009 - 01:17
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.