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 3782256
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T11:03:26+00:00 2026-05-19T11:03:26+00:00

Good Day! i am using ASIFormDataRequest to upload file, now everthing works but the

  • 0

Good Day!

i am using ASIFormDataRequest to upload file, now everthing works but the upload of file does not work. it does nothing, but other than that it works fine, i dont understand the reason, can you please help me out. here is my calling code.

[self setRequest:[ASIFormDataRequest requestWithURL:[NSURL URLWithString:@"http://localhost:8888/registerUserASI.php"]]];
[request setPostValue:strDeviceID forKey:@"userDeviceId"];
[request setPostValue:strCurrentDate forKey:@"userDateTime"];

NSData *data = UIImagePNGRepresentation(image.image);
[request setData:[[data base64Encoding] dataUsingEncoding:NSUTF8StringEncoding] forKey:@"userfile"];

btw i have also tried the SetData and AddData methods of this request as well. but same results.

The Php code is Working fine with any file upload but not this one, Can somebody help me out.

It might be php code issue that i am not properly handling for this specific request. but with other methods the uploading is working, but i want to work with this.

thanks

  • 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-05-19T11:03:27+00:00Added an answer on May 19, 2026 at 11:03 am

    I was not converting space to its %20 just because of that it was not working.

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

Sidebar

Related Questions

Good day, I wish to produce a graphic using ggplot2, but not using its
Good Day, I'm using an application that stores functions in a custom file extension
Good day, I have an application written using the Symfony framework. The application works
Good day all; I am trying to manually (not using sublayers) draw images within
Good day. I'm making a gwt application with tables using GWT Grid . Now,
Good day! I'm using SVN for years (both command-line and not integrated in VS
Good day to all. I am using zend+smarty, but I don't think the framework
Good day! I created jar file (using Netbeans) and i can't start it. This
Good day! I am working on a project right now and I am using
Good day guys, I'm trying to submit a form with a file using jQuery

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.