Function setUploadPath

Synopsis

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

virtual HttpAppFramework & setUploadPath(const std::string &uploadPath)=0

Description

Set the path to store uploaded files.

Parameters:

uploadPath - is the directory where the uploaded files are stored. if it isn't prefixed with /, ./ or ../, it is relative path of document_root path, The default value is 'uploads'.

Note
This operation can be performed by an option in the configuration file.

Source

Line 733 in lib/inc/drogon/HttpAppFramework.h.






Add Discussion as Guest

Log in to DocsForge