D
D
Denis Bukreev2017-10-27 01:38:26
Laravel
Denis Bukreev, 2017-10-27 01:38:26

How to organize a mini image hosting for your needs using Laravel?

What is: a separate domain, shared hosting for a dozen GB (that's enough for me), and a meager set of knowledge on Laravel.
What you need: in order for me to send a picture to a url via ajax, for example, img.ru/upload, the picture was successfully loaded and a link to it was returned to me.
It seems that everything is simple: we write a route, a controller, a model, and it seems like a profit?
But what problems might arise? For example, something with cross-domain or pitfalls in organizing such functionality through laravel?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
tema_sun, 2017-10-27
@tema_sun

So can you start first, and then come with a real problem?

M
Maxim Fedorov, 2017-10-27
@Maksclub

For example, something with cross-domain or pitfalls in organizing such functionality through laravel?

The domain is tied to a folder with pictures
, while Lara works with the file system with the same folder, there will be no cross-domain requests

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question