1
I am creating an image gallery using the responsivefilemanager plugin and a problem has arisen that I am unable to solve.
Look at this picture:
Clicking the blue button (With the symbol of the folder) opens a Modal in which I can create folders, upload images etc. When I select the folder, the screen closes and the folder path is returned in Input, but I’m having trouble handling it, because I actually wanted only the end of the URL (folder name).
So I ask, how can I resolve this situation? I need to get the value without submitting so I can’t use $_GET ... 
Here’s my button code
<div class="col-xs-4  col-md-4">
    <label for="pasta">Pasta:</label>
    <!-- Campo Pasta e Seleção de Imagens-->
    <div class="input-group">
        <span clas="input-group-btn text-center">
            <a href=<?=(Empty($dir))?"/assets/libs/filemanager/dialog.php?type=2&field_id=folder": "/".$dir."/assets/libs/filemanager/dialog.php?type=2?type=2&field_id=folder"?> class="btn btn-info fancy" data-fancybox-type="iframe">
                <i class="fa fa-folder-open-o"></i>
            </a>
        </span>                                     
        <input type="text" placeholder="Pasta" class="form-control" name="folder" id="folder" onchange="buscar('medium')" value="">   
    </div>     
</div> 
						
You are selecting the entire directory ? or file ?
– NoobSaibot
Whole directory ! Abs
– Diego Lela