How can I upload an image with multipart POST?

V Munich

Пользователь
Регистрация
20.02.2014
Сообщения
85
Благодарностей
3
Баллы
8
I need to upload a file from my multipart POST request, how can I do that?

I tried storing the contents of the .jpg file in a variable and using that variable in my POST request, so the result looked like this after it executed:



But it didn't work. Is this only possible with C#?
 

V Munich

Пользователь
Регистрация
20.02.2014
Сообщения
85
Благодарностей
3
Баллы
8
Is this only possible with C#?
 

surrealmix

Client
Регистрация
07.03.2013
Сообщения
715
Благодарностей
409
Баллы
63
I need to upload a file from my multipart POST request, how can I do that?

I tried storing the contents of the .jpg file in a variable and using that variable in my POST request, so the result looked like this after it executed:



But it didn't work. Is this only possible with C#?
Instead of unknown characters use path to file.

Example attached.
 

Вложения

V Munich

Пользователь
Регистрация
20.02.2014
Сообщения
85
Благодарностей
3
Баллы
8

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)