F
F
Flaker2014-06-18 00:44:29
Yii
Flaker, 2014-06-18 00:44:29

(PHP, Yii2) Where to upload public files (avatars, pictures)?

I use Advanced Template, there are Common , Backend and Frontend parts.
Files must be available in both Backend and Frontend parts.
Where to store files?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Zelenin, 2014-06-18
@Flaker

on the web you should see two folders frontend/web and backend/web. I would not open the backend url, but upload it to frontend/web/upload, that's it. But in general, create a separate subdomain for this case or set up the server config for issuing from an arbitrary folder.

A
Alexander Makarov, 2014-06-18
@SamDark

Everywhere. nginx or apache can distribute files from any directory.

L
LAV45, 2014-06-19
@LAV45

I would add Common , Backend and Frontend and also an Img folder that I would take out to a sub-domain and distribute pictures from there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question