aboutsummaryrefslogtreecommitdiff
path: root/backends/networking/sdl_net/handlers/uploadfilehandler.h
AgeCommit message (Collapse)Author
2016-08-24CLOUD: Use overriden handle() instead of ClientHandlerCallback in page handlersPeter Bozsó
Using a dedicated callback object for this was an unnecessary overhead.
2016-08-24JANITORIAL: Remove spaces at the end of the lineAlexander Tkachev
I knew there were some, but I wanted to fix them once, instead of doing it all the time.
2016-08-24CLOUD: Add UploadFileClientHandlerAlexander Tkachev
Now Client reads the first headers block, then LocalWebserver decides which Handler to use. In case of "/upload", UploadFileHandler is used. But now it only knows the "path" parameter. If that's valid, actual UploadFileClientHandler is created, which reads the contents of the request and, when finds there an "upload_file" field, starts saving it in the directory specified by "path". With that we don't need temp files approach from Reader class.
2016-08-24CLOUD: Add UploadFileHandlerAlexander Tkachev