Skip to content

einhugur/MultipartFormDataContent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

MultipartFormDataContent

MultipartFormDataContent class for Xojo

This class is to do multipart "form-data" encoding on URLConnection posts.

Example usage:

Dim f as FolderItem = GetOpenFolderItem("*.*")

if f = nil then 
  return
end if

Dim uc as URLConnection = new URLConnection()
Dim multipartContent as MultipartFormDataContent = new MultipartFormDataContent()

multipartContent.Add("Component","PictureEffects")
multipartContent.Add("Path","Xojo x64")
multipartContent.Add("File",f)

multipartContent.SetURLConnectionMultipartContent(uc)

Dim result as String = uc.SendSync("POST", "http://localhost:5000/filecontroller/api/sendfile")

About

MultipartFormDataContent class for Xojo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages