Comments (3)
Hi, you can try this example:
<!-- HTML -->
<div class="container">
<div class="form-row">
<div class="form-group col-md-6">
<label for="image_label">Image</label>
<div class="input-group">
<input type="text" id="image1" class="form-control" name="image"
aria-label="Image" aria-describedby="button-image">
<div class="input-group-append">
<button class="btn btn-outline-secondary" type="button" id="button-image">Select</button>
</div>
</div>
</div>
<div class="form-group col-md-6">
<label for="image_label">Image2</label>
<div class="input-group">
<input type="text" id="image2" class="form-control" name="image"
aria-label="Image" aria-describedby="button-image">
<div class="input-group-append">
<button class="btn btn-outline-secondary" type="button" id="button-image2">Select</button>
</div>
</div>
</div>
</div>
</div>
<!-- JS -->
<script>
document.addEventListener("DOMContentLoaded", function() {
document.getElementById('button-image').addEventListener('click', (event) => {
event.preventDefault();
inputId = 'image1';
window.open('/file-manager/fm-button', 'fm', 'width=1400,height=800');
});
// second button
document.getElementById('button-image2').addEventListener('click', (event) => {
event.preventDefault();
inputId = 'image2';
window.open('/file-manager/fm-button', 'fm', 'width=1400,height=800');
});
});
// input
let inputId = '';
// set file link
function fmSetLink($url) {
document.getElementById(inputId).value = $url;
}
</script>
from laravel-file-manager.
Works like a charm!
Thanks a lot for your quick reply!
Awesome package.
from laravel-file-manager.
Thanks for the great support!!!!
I have one issue while I open standalone button files are sorted by the name i want it by time/date sort can you please help me? thank you.
from laravel-file-manager.
Related Issues (20)
- How to add search by filename ? HOT 1
- How to sort the files by modified time of file ?
- #Laravel 10 - Your requirements could not be resolved to an installable set of packages.
- No listing directories on table selected
- Modal UI error after updating bootstrap 5.3.2 HOT 2
- Not able to find the folder details api call
- For text edit - is using CodeMirror library. Could I use visual studio code (vs code) in codeMirror Library?
- Rename folder not working for S3 HOT 1
- Package intervention/imagecache is abandoned,
- How to integrate with Laraberg?
- (FTP disk) 500 Error when creating a new folder - Directory not found
- Great work! But .... PDF open by dbl click doesn't work! HOT 1
- File extensions not showing in table view
- Modal not showing
- Not Inatalled laravel 10 HOT 1
- Upgrade to support Laravel 11 HOT 5
- downgrade to support laravel 8 framework HOT 1
- Not found error at first page
- How to paginate?
- Set root = public_path HOT 1
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-file-manager.