Function save

Summary

#include <lib/inc/drogon/MultiPart.h>

(1) int save() const

(2) int save(const std::string &path) const

Function overload

Synopsis

#include <lib/inc/drogon/MultiPart.h>

int save() const

Description

Save the file to the file system.

The folder saving the file is app().getUploadPath(). The full path is app().getUploadPath()+"/"+this->getFileName()

Source

Line 63 in lib/inc/drogon/MultiPart.h.

Synopsis

#include <lib/inc/drogon/MultiPart.h>

int save(const std::string &path) const

Description

Save the file to.

Parameters

path -

path - if the parameter is prefixed with "/", "./" or "../", or is "." or "..", the full path is path+"/"+this->getFileName(), otherwise the file is saved as app().getUploadPath()+"/"+path+"/"+this->getFileName()

Source

Line 72 in lib/inc/drogon/MultiPart.h.






Add Discussion as Guest

Log in