• Resolved Gerdski

    (@gerdski)


    Hello,

    we would need to see PDFs that were uploaded into the folders, just with a PDF icon.
    At the moment, PDFs are ignored by FileBird. Can I change this somwehere?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Bruce

    (@ninjateamwp)

    Hi @gerdski ,

    Can you please deactivate FileBird temporarily, then check the library, did you see any differences?

    Kind regards,
    -Bruce-

    Thread Starter Gerdski

    (@gerdski)

    Hello,

    it did work in the meantime, but I don’t know why.
    Anyay, it works ??

    Thank you very much!

    Plugin Support Bruce

    (@ninjateamwp)

    Hi @gerdski ,

    Glad to know it worked now!

    But then, to add… If you use this for the same domain you don’t need to use API, just use the FileBird function here is the code:

    use FileBird\Classes\Tree;
    $folderList = Tree::getFolders( null );

    In your code, please try add:

    set_time_limit(0);

    Thank you.

    Kind regards,
    -Bruce-

    Thread Starter Gerdski

    (@gerdski)

    Hey, great. I was looking for this.
    What other functions are available?
    Are all the API calls available as functions?

    Thanks!

    Plugin Support Bruce

    (@ninjateamwp)

    Hi @gerdski ,

    Yes, we have another functions here:

    Get Folder Detail
    use FileBird\Model\Folder as FolderModel;
    FolderModel::findById( $folder_id, 'id, name, parent' );
    
    Get Folders
    use FileBird\Classes\Tree;
    Tree::getFolders( null );
    
    Create New Folder
    use FileBird\Model\Folder as FolderModel;
    FolderModel::newOrGet( $name, $parent_id );
    
    Get Attachment Ids by Folder Id
    use FileBird\Classes\Helpers as Helpers;
    Helpers::getAttachmentIdsByFolderId( $folder_id );
    
    Add attachment(s) to folder
    use FileBird\Model\Folder as FolderModel;
    FolderModel::setFoldersForPosts( $ids, $folder );

    Thank you.

    Kind regards,
    -Bruce-

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Show PDF Files?’ is closed to new replies.