This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

lrialland
lrialland

Hi,

For security reasions, I am forced to use a directory that is not called temp in storage...But i don't know how to change the name of the temporary folder in October.
Has anyone ever had to do this? And if so, how should I do it?

Thanks in advance!

mjauvin
mjauvin

Please give more details on what you're trying to achieve.

lrialland
lrialland

I would like to replace the storage / temp folder with another folder of my choice

mjauvin
mjauvin

Gotta investigate further, but I'm pretty sure it's hard-coded currently.

mjauvin
mjauvin
protected function getThumbnailImageUrl($imagePath)
{   
    return Url::to('/storage/temp'.$imagePath);
}    

ref. modules/backend/widgets/MediaManager.php

You may want to submit a PR to make this configurable through a Config::get() method call.

lrialland
lrialland

Thanks for your help!

I continued to search and I found this : https://github.com/octobercms/october/pull/3050

The request was unfortunately abandoned but this is exactly what I need. I can't find the definition of the temp_path function...

1-6 of 6

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.