You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// It allows to process/validate incomping data on the fly and make sure that for example the user is actually authorized to upload
175
+
/// such a files
176
+
///
141
177
classCPPCMS_API multipart_filter : public basic_content_filter {
142
178
public:
143
179
multipart_filter();
144
180
virtual~multipart_filter();
181
+
///
182
+
/// New file meta-data of a form field or file is ready: the mime-type, form name and file name if provided are known, the content wasn't processed yet
183
+
///
184
+
/// Notes:
185
+
///
186
+
/// - This is the point when you can change various file properties, like location of the temporary file or specifiy output file name and more
187
+
/// - The request can be aborted by throwing abort_upload
188
+
/// - By default does nothing
189
+
///
145
190
virtualvoidon_new_file(http::file &input_file);
191
+
///
192
+
/// Some of the file data is available, you can access it and run some validation during upload progress.
193
+
///
194
+
/// Notes:
195
+
///
196
+
/// - This is the point when you can perform some file content validation
197
+
/// - The request can be aborted by throwing abort_upload
0 commit comments