Skip to content
Browse files

Fixed uploading!

  • Loading branch information...
1 parent 9a04897 commit a06452a45d31f721ce66db0342ead31b22a87bf9 @soffes committed Aug 29, 2010
Showing with 7 additions and 4 deletions.
  1. +1 −1 .gitmodules
  2. +5 −2 Classes/CloudAppUploadTask.m
  3. +1 −1 Classes/Vendor/ASIHTTPRequest
View
2 .gitmodules
@@ -1,3 +1,3 @@
[submodule "Classes/Vendor/ASIHTTPRequest"]
path = Classes/Vendor/ASIHTTPRequest
- url = http://github.com/pokeb/asi-http-request.git
+ url = http://github.com/samsoffes/asi-http-request.git
View
7 Classes/CloudAppUploadTask.m
@@ -137,9 +137,12 @@ - (void)requestFinished:(ASIHTTPRequest *)request {
// Upload to S3 finished
else {
- NSLog(@"[CloudApp.uploader] Complete: %@", [_s3Request responseString]);
+ NSDictionary *fileInfo = [[_s3Request responseString] JSONValue];
+ NSURL *fileURL = [NSURL URLWithString:[fileInfo objectForKey:@"url"]];
+
+ NSLog(@"[CloudApp.uploader] Complete: %@", fileURL);
NSDictionary *userInfo = [NSDictionary dictionaryWithObjectsAndKeys:
- [NSURL URLWithString:@"http://google.com"], RMUploadTaskResourceLocationKey,
+ fileURL, RMUploadTaskResourceLocationKey,
nil];
[[NSNotificationCenter defaultCenter] postNotificationName:RMUploadTaskDidFinishTransactionNotificationName object:self userInfo:userInfo];
2 Classes/Vendor/ASIHTTPRequest
@@ -1 +1 @@
-Subproject commit 6251bf19ab0f28ede3e6b2c9506aa289c46edb5a
+Subproject commit f1bc1ad8680ec780befa119b37104d869a5e79b2

0 comments on commit a06452a

Please sign in to comment.
Something went wrong with that request. Please try again.