E
E
Eugene2020-01-31 15:54:29
Laravel
Eugene, 2020-01-31 15:54:29

How to upload files from a subdomain to the main domain directory in laravel?

Hello.
How to upload files from a subdomain to the main domain directory in laravel?

There is a site admin panel on a subdomain, through which you need to upload images for articles, and there is a site itself where users read articles. Both sites are on the same server.

Is it possible to add a drive to the filesystems.php of a site on a subdomain that will access the directories of the main site and upload files to this directory?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Anton, 2020-01-31
@Fragster

Yes. On one server, no problem at all, at least make a symlink, at least write the full path in config/filesystems.php. On different ones, you need to disperse the storage on the second ftp or s3 and also register it in filesystems.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question