hi sebastian,

i tried applying the new code.  it was able to add the folder and the files. 
but when you login, you wont see those files.

i went straight to the db and change the parent_fileexploreritem_id to 0 
instead of -2 and it appeared now.

so i think you might needto change this one

 if (parentFileExplorerItemId == -2 && isOwner) {
                    // users_id (OwnerID) => only set if its directly root 
in
                    // Owner Directory,
                    // other Folders and Files maybe are also in a Home
                    // directory
                    // but just because their parent is
                    return 
FileExplorerItemDaoImpl.getInstance().add(folderName,
                            "", *parentFileExplorerItemId*, userId, room_id,
                            userId, true, // isFolder
                            false, // isImage
                            false, // isPresentation
                            "", // WML Path
                            false, // isStoredWML file
                            false, // isXmlFile
                            externalFilesid, externalType);


TO (we need to pass 0 instead of -2)

 if (parentFileExplorerItemId == -2 && isOwner) {
                    // users_id (OwnerID) => only set if its directly root 
in
                    // Owner Directory,
                    // other Folders and Files maybe are also in a Home
                    // directory
                    // but just because their parent is
                    return 
FileExplorerItemDaoImpl.getInstance().add(folderName,
                            "",* 0*, userId, room_id,
                            userId, true, // isFolder
                            false, // isImage
                            false, // isPresentation
                            "", // WML Path
                            false, // isStoredWML file
                            false, // isXmlFile
                            externalFilesid, externalType);


let me know

-- 
You received this message because you are subscribed to the Google Groups 
"OpenMeetings User" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/openmeetings-user/-/7AmK1pNR_IMJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/openmeetings-user?hl=en.

Reply via email to