Explorar o código

Alternative to mg_upload (Step 55/?)

bel %!s(int64=9) %!d(string=hai) anos
pai
achega
4d5de1ce6f
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      include/civetweb.h
  2. 1 1
      src/handle_form.inl

+ 1 - 1
include/civetweb.h

@@ -779,7 +779,7 @@ struct mg_form_data_handler {
 	 * Return value:
 	 *   TODO: Needs to be defined.
 	 */
-	int (*field_stored)(const char *path, size_t file_size, void *user_data);
+	int (*field_store)(const char *path, size_t file_size, void *user_data);
 
 	/* User supplied argument, passed to all callback functions. */
 	void *user_data;

+ 1 - 1
src/handle_form.inl

@@ -124,7 +124,7 @@ field_stored(const struct mg_connection *conn,
 
 	(void)conn; /* we do not need mg_cry here, so conn is currently unused */
 
-	return fdh->field_stored(path, file_size, fdh->user_data);
+	return fdh->field_store(path, file_size, fdh->user_data);
 }