mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-23 06:51:26 +03:00
Remove logging now that file upload *seems* to work
This commit is contained in:
parent
33f94c265e
commit
b4f9860848
@ -1299,7 +1299,6 @@ fetch_curl_post_convert(const struct fetch_multipart_data *control)
|
||||
code, control->name));
|
||||
} else {
|
||||
char *mimetype = fetch_mimetype(control->value);
|
||||
LOG(("XYZZY: Using rawfile of %s", control->rawfile));
|
||||
code = curl_formadd(&post, &last,
|
||||
CURLFORM_COPYNAME, control->name,
|
||||
CURLFORM_FILE, control->rawfile,
|
||||
|
@ -592,15 +592,14 @@ bool form_successful_controls(struct form *form,
|
||||
control->value : "");
|
||||
success_new->rawfile = NULL;
|
||||
/* Retrieve the filename from the DOM annotation */
|
||||
LOG(("XYZZY: Attempting to retrieve data"));
|
||||
if (dom_node_get_user_data(
|
||||
control->node,
|
||||
corestring_dom___ns_key_file_name_node_data,
|
||||
&rawfile_temp) != DOM_NO_ERR) {
|
||||
LOG(("XYZZY: unable to get rawfile"));
|
||||
LOG(("unable to get rawfile"));
|
||||
goto no_memory;
|
||||
}
|
||||
LOG(("XYZZY: Got raw filename: %s", rawfile_temp));
|
||||
|
||||
if (rawfile_temp == NULL) {
|
||||
/* No annotation means the file was not
|
||||
*/
|
||||
|
@ -1704,7 +1704,6 @@ static void html__dom_user_data_handler(dom_node_operation operation,
|
||||
|
||||
switch (operation) {
|
||||
case DOM_NODE_CLONED:
|
||||
LOG(("XYZZY: Cloned, so copying to the new location"));
|
||||
if (dom_node_set_user_data(dst,
|
||||
corestring_dom___ns_key_file_name_node_data,
|
||||
strdup(data), html__dom_user_data_handler,
|
||||
@ -1720,7 +1719,6 @@ static void html__dom_user_data_handler(dom_node_operation operation,
|
||||
break;
|
||||
|
||||
case DOM_NODE_DELETED:
|
||||
LOG(("XYZZY: Freeing data due to node deletion"));
|
||||
free(data);
|
||||
break;
|
||||
default:
|
||||
@ -1811,12 +1809,10 @@ static bool html_drop_file_at_point(struct content *c, int x, int y, char *file)
|
||||
form_gadget_update_value(html, file_box->gadget, utf8_fn);
|
||||
|
||||
/* corestring_dom___ns_key_file_name_node_data */
|
||||
LOG(("XYZZY: Setting userdata to %s", file));
|
||||
if (dom_node_set_user_data((dom_node *)file_box->gadget->node,
|
||||
corestring_dom___ns_key_file_name_node_data,
|
||||
strdup(file), html__dom_user_data_handler,
|
||||
&oldfile) == DOM_NO_ERR) {
|
||||
LOG(("XYZZY: Userdata used to be %s", oldfile));
|
||||
if (oldfile != NULL)
|
||||
free(oldfile);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user