Comments (18)
Did you register the routes?
from laravel-elfinder.
yes,i follow your instruction
Route::get('elfinder/tinymce', 'Barryvdh\Elfinder\ElfinderController@showTinyMCE4');
from laravel-elfinder.
file: 'public_html/elfinder/tinymce',// use an absolute path!
- That is not absolute.
- That is not correct, the public_html doesn't belong there.
it's something like url('elfinder/tinymce')
or action('Barryvdh\Elfinder\ElfinderController@showTinyMCE4')
or `/elfinder/tinymce'
from laravel-elfinder.
i change it into
tinymce.activeEditor.windowManager.open({
file: 'elfinder/tinymce',// use an absolute path!
title: 'elFinder 2.0',
width: 900,
height: 450,
resizable: 'yes'
}, {
setUrl: function (url) {
win.document.getElementById(field_name).value = url;
}
});
return false;
}
but still getting the same error.... ><
from laravel-elfinder.
What url is giving a 404?
Did you also register the elfinder
and elfinder/connector
route?
And you are still not using an absolute path.
from laravel-elfinder.
what do you mean by absolute path?
Route::group(array('before' => 'auth'), function()
{
\Route::get('elfinder', 'Barryvdh\Elfinder\ElfinderController@showIndex');
\Route::any('elfinder/connector', 'Barryvdh\Elfinder\ElfinderController@showConnector');
});
Route::get('elfinder/tinymce', 'Barryvdh\Elfinder\ElfinderController@showTinyMCE4');
from laravel-elfinder.
An absolute url, not a relative url.
But what url gives you the 404?
from laravel-elfinder.
view-source:http://localhost/bkculv/public_html/admins/artikel/1/elfinder/tinymce
still don't understand what you mean by absolute url... can a little example?
from laravel-elfinder.
If you use the Laravel url helper, is should create an absolute url ('http://domain.com/elfinder/tinymce'). Now you are using relative urls, so the url is appended to the current url. You can use a leading / to make it relative the root, but that doesn't work for you because you have your app in a subfolder.
from laravel-elfinder.
so what should i insert into file:? i tried file: url('elfinder/tinymce') but when it not even showing file browser modal/windows/dialog
from laravel-elfinder.
Then you probably haven't configured your paths for you Laravel app right. Sorry I can't really help you with this information, please try to understand how urls/routes work/are generated. And you better use a vhost or something so you don't have to have 'bkculv/public_html/' in your urls.
from laravel-elfinder.
well i'm newbie in laravel and still learning it...
so maybe atleast show me some example? so i know where to look...
from laravel-elfinder.
okay, i manage to make it works ahahhaa
../../../elfinder/tinymce
thank you for quick response
but after i tried to use it and upload images and put in into my article, when i want to show it in it parse wrong image file path... instead of http://localhost/bkculv/public_html/files/wallhaven-76098.jpg , it parse http://localhost/files/wallhaven-76098.jpg
what do i miss?
from laravel-elfinder.
You should try to make a vhost configuration, so that you can use http://bkculv.local instead of http://localhost/bkculv/public_html/
What you have now will only cause more trouble.
from laravel-elfinder.
but is it will work if i publish my website/project into shared hosting?
from laravel-elfinder.
On shared hosting you probably also have 1 domain for you app, not a subfolder, right?
from laravel-elfinder.
yes...
i getting pretty confuse now hahahahha
from laravel-elfinder.
okay thank you, after reading about vhost i already get sense what is going on ahhahahaa... so once again thank you for your friendly and fast respond and also for your great component/plugin(it's called that right?)
from laravel-elfinder.
Related Issues (20)
- 502 response when connecting to s3 bucket
- Error in hosting website
- ¿Laravel 9 update? HOT 9
- v0.4.7 verison is not containing latest changes HOT 1
- webp not showing thumb with glide
- Image url is wrong HOT 1
- Order of arguments to array_merge is incorrect leading to options not being overriden
- Plugins
- Unable to connect to backend. HTTP error 401 HOT 1
- navigate from image path to folder
- Feature Request: Add support for Laravel 10 HOT 1
- Unable to rename folder using S3 HOT 1
- help hidding folders in a google bucket HOT 1
- S3 bucket with LOTS of object error HOT 1
- s3 connection issue
- Is possible override ElfinderController? HOT 1
- Success with elFinder 1x.
- New problem with auth middleware
- NetworkError: Failed to execute 'importScripts' on 'WorkerGlobalScope': calcfilehash.js failed to load
- having two different routes to laravel elfinder?
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-elfinder.