Skip to content
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

Issue with uploaded image url #102

Closed
BinWang01 opened this issue Aug 8, 2016 · 8 comments
Closed

Issue with uploaded image url #102

BinWang01 opened this issue Aug 8, 2016 · 8 comments
Labels
bug Behaviors that do not meet expectation. done Issue is fixed. Will be closed in 7 days.

Comments

@BinWang01
Copy link

BinWang01 commented Aug 8, 2016

The image was uploaded successfully into 'public/photos/1/57a8f5aaaf2b3.jpg' through the 'browse server' button , but when I clicked the uploaded image to insert it into ckeditor, the returned url was http://localhost/photos1/57a8f5aaaf2b3.jpg. Looks like a '/' is missing between the 'photos' directory and the user_id directory. Consequently, I cannot insert the image into ckeditor. It works well if I upload the image through the ckeditor "upload" button.
Hopefully someone can help fix the issue. Thanks!

@BinWang01
Copy link
Author

It worked after I removed the following from vendor/unisharp/laravel-filemanager/src/views/script.blade.php

if (path.indexOf(ds) === 0) {
path = path.substring(1);
}

@streamtw streamtw added the bug Behaviors that do not meet expectation. label Aug 11, 2016
@placidrod
Copy link

Thanks @bbryan0904. I was facing the same issue and your solution just solved it.

@amindeist
Copy link

i have same issue...thank you very much @bbryan0904

@rifqifurqan
Copy link

nice one already fix it, i hope the the developers fix this soon [URGENT]

@streamtw
Copy link
Member

streamtw commented Sep 7, 2016

Thanks @bbryan0904 , this will be fixed in three days.

@streamtw
Copy link
Member

Updating to 1.6.1 would solve this.

@askmhs
Copy link

askmhs commented Oct 27, 2017

This also worked for me by replacing the code at line 350 (vendor/unisharp/laravel-filemanager/src/views/script.blade.php).

if (path !== ds) {
item_url = item_url + path + ds;
} else {
item_url = item_url + ds;
}

@haidang
Copy link

haidang commented Jul 23, 2020

I doesn't see file "vendor/unisharp/laravel-filemanager/src/views/script.blade.php" in v2.1. How to fix this on v2.1?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Behaviors that do not meet expectation. done Issue is fixed. Will be closed in 7 days.
Projects
None yet
Development

No branches or pull requests

7 participants