Comments (12)
We haven't support this feature yet.
Happy to hear this suggestion, and we might add this later.
from laravel-filemanager.
The behavior is very similar to the Browse Server
button on CKEditor integrated with laravel-filemanager.
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.
@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.
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.
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.
great. thanks @youchenlee you have started to work on this feature. do you have any tentative date to release?
from laravel-filemanager.
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.
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.
@youchenlee , any update on this issue? it would be great if you can priorities this for me. 😄
from laravel-filemanager.
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.
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.
Implemented in 1.5.0
from laravel-filemanager.
Related Issues (20)
- Undefined method Error HOT 7
- Missing parent::error method at LfmController HOT 3
- + icon dissappears and doesn't come back HOT 3
- Larave File Manager version 2.6.4 does not support .gif files HOT 3
- clicking the confirm button to get the file path url
- Class \"Intervention\\Image\\Facades\\Image\" not found HOT 5
- Use Laravel's built in filesystem abstraction
- Not compatible with Laravel 11 HOT 2
- "Class \"Intervention\\Image\\Facades\\Image\" not found" on Laravel 11 and laravel-filemanager 2.8 HOT 6
- Can't upload a .gltf file?
- Logs left in code HOT 2
- Class "Intervention\Image\Laravel\Facades\Image" not found HOT 3
- tinymce 7 Integration
- How to use UniSharp File Manager with InertiaJS, ReactJs HOT 3
- Get relative path without the domain HOT 4
- support for Quill Rich Text Editor
- Support for Trix Editor
- Delete button is not clickable HOT 1
- Update Hebrew translations
- On file (image) upload: " Some error occured during uploading" error tooltip shows up with Tinymce 7 editor. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-filemanager.