Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8309455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T19:07:24+00:00 2026-06-08T19:07:24+00:00

I need to POST a video to a server in the background. Until now

  • 0

I need to POST a video to a server in the background. Until now i’ve been using this sort of pattern when POSTing:

- (BOOL)loginUser:(user *)user
{
    BOOL ret = NO;

    AppDelegate *appDelegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
    [appDelegate.waitView startWithMessage:@"Signing in ..."];

    [self.objectManager postObject:user usingBlock:^(RKObjectLoader *loader)
     {
         loader.delegate = self;
         loader.targetObject = nil;

         loader.objectMapping = [RKObjectMapping mappingForClass:[user class] usingBlock:^(RKObjectMapping *mapping)
                             {
                                 [mapping mapKeyPath:@"id" toAttribute:@"ID"];
                                 [mapping mapKeyPath:@"last_name" toAttribute:@"last_name"];
                                 [mapping mapKeyPath:@"first_name" toAttribute:@"first_name"];
                                 [mapping mapKeyPath:@"middle_name" toAttribute:@"middle_name"];
                                 [mapping mapKeyPath:@"email" toAttribute:@"email"];
                                 [mapping mapKeyPath:@"password" toAttribute:@"password"];
                                 [mapping mapKeyPath:@"authentication_token" toAttribute:@"authentication_token"];
                             }];

         loader.serializationMapping = [loader.objectMapping inverseMapping];
         loader.serializationMapping.rootKeyPath = NSStringFromClass([user class]);
     }];

    return ret;
}

… but this pattern doesn’t seem to let me access any RKRequest object on which to set the backgroundPolicy. So, i’ve looked at using RKClient like so:

- (BOOL)postBigMediaFile:(NSString *)pathToBigFile
{
    BOOL ret = NO;

    NSString *resourcePath = @"/bigFile";

    [[RKClient sharedClient] post:resourcePath usingBlock:^(RKRequest *request)
     {
         request.backgroundPolicy = RKRequestBackgroundPolicyContinue;

         // how do I set up the object mapping?


     }];

    return ret;
}

… but the RKRequest object doesn’t seem to have a way of accessing an RKObjectLoader for which to setup the mapping on. How do I post data in the background using object mapping?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T19:07:26+00:00Added an answer on June 8, 2026 at 7:07 pm

    Silly me … RKObjectLoader is a subclass of RKRequest, so I can just do loader.backgroundPolicy = … 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to post some text to a remote server over HTTP, this server
I need to post in the background with Greasemonkey. I tried to create an
I've got a form and I need to post data to the server every
In my app, I have this scenario where I need to post an object
I'm completely new to php. i need to play a video in vlc using
This is my first post here, but I've using this site regularly to help
I need to share one video url getting from my server in twitter. And
I'd like to embed a remote video file into a facebook post using the
I need to post message on a certain FB page as a owner by
I need to post a form on a new website which is UTF-8 encoded.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.