-
Notifications
You must be signed in to change notification settings - Fork 721
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use of Laravel asset function in script.blade.php cause getFileUrl to return bad path #114
Comments
Thank you! |
Same problem with Ck-editor integration A similar problem occur when you try to delete a folder. I create a exemple folder and i try to remove and the path is incorrect Normally C:\Users\Perpleex\Documents\Project/public/files/shares/exemple From what i see on js debug the trash method take in parameter item_name with sharesexemple inside the two are already concatenate without the / On the call you use that href="javascript:trash('shares\exemple')" But the trash method receive that : So item_name not need shares at the start to work but something weird intercept the call and remove / on all function too But for that a simple basename on folders.blade.php can do the job.
Some strange things too if you are in images mode and you create a new folder you comeback in file mode. |
basename() function is buggy with Chinese characters. |
script.blade.php
|
Updating to 1.6.1 would solve this. |
that asset thing isnt good when you want to customize your files into a Database field. I removed it but now Im getting double |
On Jun 28 a change was made to line 5 of script.blade.php so that it now reads:
var image_url = "{{ asset(Config::get('lfm.images_url')) }}";
The asset function was added. The use of the asset function causes the trailing / of images_url to be removed.
Then getFileUrl remove the leading / here:
if (path.indexOf(ds) === 0) {
path = path.substring(1);
}
The result is a path like http:://localhost/images1/23423423.png
The text was updated successfully, but these errors were encountered: