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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:47:38+00:00 2026-05-25T19:47:38+00:00

I try to POST images to server. I have finished it successfully like this:

  • 0

I try to POST images to server.
I have finished it successfully like this:

I have webView, catch “right” url and switch viewControllers.
After switch them I choose image from PhotoLibrary or from camera, POST it and switch controllers back.
P.S. As u know, in mobile safary(in webview too) all “choose” buttons on sites are disabled.

I think that it isn’t straightforward way, so..
My question:
Can I choose images from webview’s button “choose”? I want to choose images on iDevices similar PC without another viewControllers.

I’m newbie in programming, but I have some ideas(don’t know how to realize them):
1.Upload image to DOM. And use “save” button on webView.
2.Add button with selector(can I?) to webView with Javascript. And handle this selector.(smth like that) I saw similar thing for toolbar item.

  • 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-25T19:47:38+00:00Added an answer on May 25, 2026 at 7:47 pm
    • Get the image. Convert in to a base64 string (http://stackoverflow.com/questions/3889478/uiimage-to-base64-string-encoding)
    • Put this string inside the value of a hidden input.
    • Submit the form.
    • On the server convert the base64 back to binary and save to file/DB.

    (PS. File inputs are not supported in iOS safari. The choose button is just there as a placeholder, to not break any layouts. There is absolutely no code behind the element, so there is no way try to get it to work.)

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

Sidebar

Related Questions

I have a POST controller action like: if (ModelState.IsValid) { try { //.. save
I've written this code to try and send a url as a post value
EDIT2 Looks like I can't read properly, disregard this post, I will try to
HttpRequestValidationException occurs when I try post when txtBulletin contains any HTML, like Hello<br />World
I have this code for uploading files on the server: <tr> <td> <form enctype=multipart/form-data
I have a situation here I am preparing a custom post for facebook like
I am currently uploading images to my server via HTTP POST. Everything works fine
I have been Googling this for about a day now, and every post I
Every time I try to post to twitter in my rails app, the first
I could try to post and explain the exact query I'm trying to run,

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.