Select an album automatic for every Upload

daru

New Member
Reservo User
May 21, 2018
8
1
3
37
Hi,
I want to set a permissions, when a user upload a new picture –should be selected automatic a specific album (for Example "My Uploads" - which was created for every User (i have set some alums in the "Admin Area - Site Configuration - File Manager")). where can i edit the Source code- (which File) to select automatic an album, without the user have to change it manuell?
Thank you in advance & greetings from germany
 

daru

New Member
Reservo User
May 21, 2018
8
1
3
37
I found a solution. I have added an If-query in "_uploader.inc.php" to catch a Folder-ID by "Album-Name". Than i have added a selected option with the catched value to the <select> Element.

PHP:
if (COUNT($folderArr)) {
    foreach ($folderArr AS $id => $folderLabel) {
    if ($folderLabel == 'Pictures') 
        {$fselect2 = $id;}
PHP:
     <option selected value="<?php echo($fselect2);?>"><?php echo t("index_default", "- default -"); ?></option>
 

Mick59320

New Member
Apr 13, 2019
1
0
1
39
It's run for you?
I have only a line with written -default- but i can't choose any album...select-specific-album-01.png