1

Can anybody help me with folder creation on my HTTP server (It is SanDisk Connect WiFi)

SanDisk has a own address : http://172.25.63.1/myconnect/

I am able by Indy from Android to do follow :

  • download files from ->> IdHTTP1.Get
  • upload separated files to ->> IdHTTP1.Put
  • delete files on HTTP ->> IdHttp1.Delete('http://172.25.63.1/myconnect/XYZ.pdf',TStringStream.Create(''));

But I can not find methode, how to create DIRECTORY (FOLDER) .

Can anybody has a better experiences as I ?

Thank you a lot for your help

1 Answers1

2

Creation of a folder at HTTP server side requires that the server support the WEBDAV protocol which is an extension of the HTTP protocol.

At client side, Indy in your case, you have to send the MKCOL command to the HTTP server. Indy has a TIdWebDAV component, which has a DAVMakeCollection() method for sending a MKCOL command.

Note: WebDav is described in this specifications but not all servers implement it.

Community
  • 1
  • 1
fpiette
  • 11,983
  • 1
  • 24
  • 46