Skip to content

Commit

Permalink
Added support for the new version of DKAPIRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
keithpitt committed Aug 28, 2011
1 parent dbeb64f commit 903e950
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Classes/DKFile.h
Expand Up @@ -8,6 +8,8 @@

#import <Foundation/Foundation.h>

@class DKAPIFormData;

/** NSFileManager wrapper that makes it easy to work with files
*/
@interface DKFile : NSObject
Expand Down
12 changes: 12 additions & 0 deletions Classes/DKFile.m
Expand Up @@ -150,6 +150,18 @@ - (NSString *)description {

}

- (id)formData:(id)formData valueForKey:(NSString *)key {

return self.path;

}

- (int)formData:(id)formData dataTypeForKey:(NSString *)key {

return 2;

}

- (void)dealloc {

self.path = nil;
Expand Down

0 comments on commit 903e950

Please sign in to comment.