Git Product home page Git Product logo

Comments (12)

streamtw avatar streamtw commented on July 28, 2024

We haven't support this feature yet.
Happy to hear this suggestion, and we might add this later.

from laravel-filemanager.

youchenlee avatar youchenlee commented on July 28, 2024

The behavior is very similar to the Browse Server button on CKEditor integrated with laravel-filemanager.

screen_shot_2016-02-26_at_13_26_32

The way to open file-manager window is very straightforward. When user click the button, it should open the path /laravel-filemanager?type=Images in a new window.

The question now is: How do we trigger the callback to pass the selected file to the opener?
The useFile function should be modified to do the job. https://github.com/UniSharp/laravel-filemanager/blob/master/src/views/index.blade.php#L361

Any suggestions? @nasirkhan

from laravel-filemanager.

nasirkhan avatar nasirkhan commented on July 28, 2024

@g0110280, can we get a expected release date? I integrated this package but as this feature is not available or i might not find i am searching for alternatives. For me it is very urgent. I found one (http://laravel-filemanager.rhcloud.com/) but the integration is not as easy as this one. Need your assistance to get it done.

@youchenlee, I mentioned above that it is very urgent for me and i searched for alternatives. http://laravel-filemanager.rhcloud.com/ have this feature but have less feature as this package.
You are right that the file manager window can be opened easily and i tried the approach as like the guillermomartinez/filemanager-laravel. Then file-manager window was opened but i could not select the files. I am not sure how to change the mentioned useFile function. I need assistance on this.

from laravel-filemanager.

youchenlee avatar youchenlee commented on July 28, 2024

This instruction might help: https://github.com/simogeo/Filemanager/wiki/How-to-use-the-filemanager-from-a-simple-textfield
I will revise the code when having time.
Any suggestions or pull requests are very welcome.

from laravel-filemanager.

nasirkhan avatar nasirkhan commented on July 28, 2024

I tried to follow it instruction but it was not successful. i use the script as follows. When i click on the button the file browser showed up and when i select any image, the browser closes. but the input box remains empty.

Another issue is, when i tried to use this script along with the CKEditior at the same time it shows an error TypeError: this._.filebrowserSe is undefined

<script type="text/javascript">
  // File Picker modification for FCK Editor v2.0 - www.fckeditor.net
 // by: Pete Forde <pete@unspace.ca> @ Unspace Interactive
 var urlobj;

 function BrowseServer(obj)
 {
      urlobj = obj;
      OpenServerBrowser(
      '/laravel-filemanager?type=Images&CKEditor=description&CKEditorFuncNum=1&langCode=en',
      screen.width * 0.7,
      screen.height * 0.7 ) ;
 }

 function OpenServerBrowser( url, width, height )
 {
      var iLeft = (screen.width - width) / 2 ;
      var iTop = (screen.height - height) / 2 ;
      var sOptions = "toolbar=no,status=no,resizable=yes,dependent=yes" ;
      sOptions += ",width=" + width ;
      sOptions += ",height=" + height ;
      sOptions += ",left=" + iLeft ;
      sOptions += ",top=" + iTop ;
      var oWindow = window.open( url, "BrowseWindow", sOptions ) ;
 }

 function SetUrl( url, width, height, alt )
 {
      document.getElementById(urlobj).value = url ;
      oWindow = null;
 }
 </script>
<button type="button" onclick="BrowseServer('image');">Pick Image</button>
<input type="text" id="image"/>

from laravel-filemanager.

nasirkhan avatar nasirkhan commented on July 28, 2024

great. thanks @youchenlee you have started to work on this feature. do you have any tentative date to release?

from laravel-filemanager.

youchenlee avatar youchenlee commented on July 28, 2024

Hi @nasirkhan, this is the primary objective in the next milestone. The release will be within two weeks, depends on our workload. Thank you for your previous contribution, it should help.

from laravel-filemanager.

nasirkhan avatar nasirkhan commented on July 28, 2024

thank you all, for your efforts. It is an awesome package, and i think it was one of the few missing parts. Waiting for the next release.

from laravel-filemanager.

nasirkhan avatar nasirkhan commented on July 28, 2024

@youchenlee , any update on this issue? it would be great if you can priorities this for me. 😄

from laravel-filemanager.

youchenlee avatar youchenlee commented on July 28, 2024

Hi @nasirkhan,
@amin101 has made some changes for independent usage.
The key one should be at amin101@a1b516a#diff-dcfeb24959cdb58ee19a23037e3d7472R491

And please also read the "independent-use" section of the README:
https://github.com/amin101/laravel-filemanager/blob/bugfix/README.md#independent-use

We will merge the pull request later.

from laravel-filemanager.

nasirkhan avatar nasirkhan commented on July 28, 2024

the new code works fine. 👍

a few observations

  • need to work for files other than images
  • a different example could be added with text input and simple button

from laravel-filemanager.

streamtw avatar streamtw commented on July 28, 2024

Implemented in 1.5.0

from laravel-filemanager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.