function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Recapify DeveloperRecapify Developer 

upload pdf through iOS SDK

I am trying to upload a pdf file to chatter through iOS SDK. 

Getting error:    404 "the requested resource does not exist".

 Error Domain=CSFNetworkErrorDomain Code=404 "The requested resource does not exist" UserInfo={NSLocalizedFailureReason=NOT_FOUND, isAuthenticationFailure=false, NSLocalizedDescription=The requested resource does not exist, action=<SFRestAPISalesforceAction: 0x7fe9eda02bf0, POST "/chatter/users/me/files" (0.00)>}

here is my request:

    SFRestRequest * request = [[SFRestAPI sharedInstance] requestForUploadFile:pdfData name:nameString description:dataDescription mimeType:@"application/pdf"];

Can someone give me a clue?