Ask A Question

Notifications

You’re not receiving notifications from this thread.

Upload in webview

Rafael Soares asked in Rails

I have a Rails web application, and I hired someone to develop an android and iphone app for it, which is just a webview opening the website.

In the web app, the user can upload an avatar picture. But uploading is not working from the app, it just doesn't open the dialog box to choose the file.

Anybody had this issue before and knows if there is a way I can solve this issue from the rails side?

Reply

Hi Rafael - this could be any of a million different things, but the most obvious one is permissions. Does the iOS app ask the user for permission to access the camera roll? If it doesn't, then that's at least part of the problem. The app needs to get the User's permission before it can pull up the saved photos from the phone and/or access the device camera.

Reply

Hi Chris, thanks for the reply,

It does have permission to the camera roll. Actually I just did a test with a very simple snippet of code. I've put the following in a html file in the public folder.

<html> <body> <input type="file" name="test" /> </body> </html>

But it still doens't open the dialog box. Do you have any experience with this?

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 87,563+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.