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

  • SEARCH
  • Home
  • 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 7787547
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T20:42:24+00:00 2026-06-01T20:42:24+00:00

I want to upload a image(UIImage) from ios app to django website.(where has forms

  • 0

I want to upload a image(UIImage) from ios app to django website.(where has forms and submit button, just like normal web page.)

So I decide to use ASIFormDataRequest for that. (I’m a noob, am I doing right?)

First,

NSURL *url = [NSURL URLWithString:@"http://someec2site/profile/album/2/upload/"];

Error: The current URL, profile/album/2/upload/, didn’t match any of these.

So, I did,

NSURL *url = [NSURL URLWithString:@"http://someec2site/profile/albums/(?P<album_id>\d+)/upload/"];

ERROR: Unknown escape sequence ‘\d’

I have a question.

1) Am I doing right?

2) How can I grab a relative url for string? (redirecting urls based on url.py)

  • 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-01T20:42:25+00:00Added an answer on June 1, 2026 at 8:42 pm

    First of all Your choice of using ASI is very good for HTTP requests.

    If I am not mistaken you are trying to construct the upload urls for different album ids.

    Why don’t you try this:

    NSString * urlString = [NSString stringWithFormat:@"http://someec2site/profile/album/%d/upload/",albumId];
    NSURL * url = [NSURL urlWithString:urlString];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to upload an image just after the user select it from the
I want to upload an image use something like <form ...> <input type=file id=upload></input>
I want to upload an image from disk, resize it, and then upload it
I want to create an application where I want to upload image from the
Hope you all will be fine. Actually i want to upload image files from
I want to upload one image to the database by using Google app engine
I want to upload an image generated by my app to Dropbox. I see
i want to upload image int the bitmap object from asp.net, the image is
I need big help from you,I want to upload image using amazon s3 web
I am new in Iphone development. I want to upload image from Iphone library

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.