if ([self->disabled boolValueInComponent:[_ctx component]])
return;
-
+
currentId = OWFormElementName(self, _ctx);
-
+
if ((formValue = [_rq formValueForKey:currentId]) == nil)
return;
contentType = [[_rq httpRequest] contentType];
if (![contentType hasSameType:multipartFormData]) {
- NSLog(@"WARNING: tried to apply file-upload value of %@ from "
- @"a non multipart-form request (value=%@) !",
- [_ctx elementID], formValue);
+ [self warnWithFormat:
+ @"Tried to apply file-upload value of eid=%@ from "
+ @"a non multipart-form request (value=%@).",
+ [_ctx elementID], formValue];
return;
}
#if 0
NSLog(@"%@: value=%@ ..", [self elementID], formValue);
#endif
-
+
if ([self->data isValueSettable])
[self->data setValue:formValue inComponent:[_ctx component]];
-
+
+ /* the remainder is for locating the file path */
+
if (![self->filePath isValueSettable])
return;
[[DispClass alloc] initWithString:[disposition stringValue]];
disposition = [disposition autorelease];
}
-
+
formName = [(NGMimeContentDispositionHeaderField *)disposition name];
if ([formName isEqualToString:currentId]) {