E
E
Egor Sh2016-03-31 18:02:28
go
Egor Sh, 2016-03-31 18:02:28

How to save images to the server and give them a link to GOlang?

Good afternoon, please tell me about this issue, here in VK all the pictures are available at the following links https://pp.vk.me/c627422/v625522527/3aeb9/7Hkx-5O4.jpg , how is this implemented? That is, instead of folder names and pictures, some encoded hashes, I want to do the same on my server, written in GOlang, but I can’t figure out how. In which direction should I dig?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mr4x, 2016-03-31
@Maxim_Samburskiy

An id is generated for the file, it is determined in which bucket to put it, and then the image is uploaded to the desired server. When requested, a bucket and id are received from the address, and a picture is loaded from the desired server using them

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question