mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
32 lines
772 B
Objective-C
32 lines
772 B
Objective-C
//
|
|
// TSUploadAttachment.m
|
|
// TextSecureiOS
|
|
//
|
|
// Created by Christine Corbett Moran on 12/3/13.
|
|
// Copyright (c) 2013 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import "TSUploadAttachment.h"
|
|
#import "TSAttachmentStream.h"
|
|
#import <AFNetworking/AFHTTPRequestOperation.h>
|
|
|
|
@interface TSUploadAttachment ()
|
|
@property(nonatomic,strong) TSAttachment* attachment;
|
|
@end
|
|
|
|
@implementation TSUploadAttachment
|
|
|
|
-(TSRequest*) initWithAttachment:(TSAttachmentStream*)attachment{
|
|
|
|
// self = [super initWithURL:attachment.attachmentURL];
|
|
// self.HTTPMethod = @"PUT";
|
|
// self.attachment = attachment;
|
|
//
|
|
// [self setHTTPBody:[self.attachment getData]];
|
|
// [self setAllHTTPHeaderFields: @{@"Content-Type": @"application/octet-stream"}];
|
|
//
|
|
// return self;
|
|
|
|
}
|
|
|
|
@end
|