1 year ago

#158483

test-img

Shraga Milon

How to save multiple files with TIdHttpServer?

I'm using Delphi 10.4.2 and use TIdHTTPServer to receive data.

The client want to attach one or more an image files with this data. Something like this:

POST Multipart/form-data: 

Data fields:

"sharakrak_id":1852,
"event_id":1629630415,
"event_type":1,
"client_id":1852,
"cam_id":2,
"objects":["person"]

Attached files:
"image" - image files (0, 1 or more)

How I can determine that there are files attached and save all of them?

delphi

indy

httpserver

indy10

0 Answers

Your Answer

Accepted video resources