A
A
Androbim2019-05-27 09:31:21
Yii
Androbim, 2019-05-27 09:31:21

Can PHP upload files to a remote file system?

Good day!
With uploading files to the server, in principle, everything is clear. Well, something like this, for example, is done in Yii2

...
$imageFile->saveAs(Yii::getAlias('@webroot') . '/storage/img/' .....
...

But here local paths are registered!
Is it possible to somehow upload files to a remote file system, for example, when the storage is physically located on another server?
Is it resolved?
Sincerely.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Fedorov, 2019-05-27
@Androbim

https://github.com/creocoder/yii2-flysystem

A
Androbim, 2019-07-23
@Androbim

Solved by installing hard links.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question