laravel-filemanager icon indicating copy to clipboard operation
laravel-filemanager copied to clipboard

How can I remove the domain name from the path of image?

Open DevYSM opened this issue 3 years ago • 5 comments

Hello devs, Please how can I remove the domain name from the Image path for example: http://127.0.0.1:8000/storage/photos/1/61a4d686d98b9.jpeg I just need the : /storage/photos/1/61a4d686d98b9.jpeg

the package handle this or I will do it manually.

DevYSM avatar Nov 29 '21 22:11 DevYSM

same with me. keep using http://127.0.0.1:8000/ even I set relative_url to true. caused image nt found cz calling http://127.0.0.1:8000/ twice

sorryjack avatar Dec 22 '21 09:12 sorryjack

I find the same ticket issue but why remove the App Domain !!!

DevYSM avatar Dec 23 '21 09:12 DevYSM

Hi here is how to solve this problem because I had it before:

'public' => [
     'driver' => 'local',
     'root' => storage_path('app/public'),
- 'url' => env('APP_URL').'/storage',
+ 'url' => '/storage',
     'visibility' => 'public',
 ],

in the file config/filesystems.php

ORN-Fox avatar Jan 14 '22 00:01 ORN-Fox

why images are stored in folder name "1" ?? who can explain to me? pls

nqlinh2205 avatar Nov 14 '22 15:11 nqlinh2205

User ID 1, or 2, or 3 etc.

@@streamtw @tsawler @youchenlee

Please close this?

eugenefvdm avatar Mar 27 '24 12:03 eugenefvdm

I don’t have permission to close this, since this is a fork.

-- Trevor On Mar 27, 2024 at 9:37 AM -0300, Eugene van der Merwe @.***>, wrote:

User ID 1, or 2, or 3 etc. @@streamtw @tsawler @youchenlee Please close this? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

tsawler avatar Mar 27 '24 12:03 tsawler