Page 1 of 1

upload file(pdf or doc) on ios not just image

Posted: Wed Feb 12, 2014 3:53 am
by Kartik A

I am try to have a functionality to upload a file (pdf or doc ) on iOS device when user click on button.

I created one button and added javascript for click event as shown below and added hidden html with below code but when I test on iOS device I only see option to select file type image only. I refered the forum that suggest to use accept="*" (https://getsatisfaction.com/apperyio/...) and other option too but it didnt work. please advise asap how to fix this problem.

Shared project "FileSelector" with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a.

Image

Image


upload file(pdf or doc) on ios not just image

Posted: Wed Feb 12, 2014 5:55 am
by Alena Prykhodko

Hello,

Please try the approach Katya suggested https://getsatisfaction.com/apperyio/...


upload file(pdf or doc) on ios not just image

Posted: Wed Feb 12, 2014 6:43 am
by Kartik A

Hi Alena,

I have already tried the approach Katya suggested to include accept = "" as well as accept="/*" but none of that work.

I already went through the link previously(mention in my description too) and try all the options mention there but it didnt work.

I have shared a project for your reference "FileSelector" with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a.


upload file(pdf or doc) on ios not just image

Posted: Wed Feb 12, 2014 4:58 pm
by Kartik A

Any update on this issue please? This issue is delaying my app submission to app store. Appreciate if you could help me resolve this issue at the earliest possible.

As mention above did as per tutorial and also the solutions suggested by Katya but unfortunately its not working. You can take a look at the shared App("FileSelector" with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a) and advise if anythings is missing?


upload file(pdf or doc) on ios not just image

Posted: Wed Feb 12, 2014 5:38 pm
by Kateryna Grynko

Hi Kartik,

Do you have any apps installed on your device for loading/opening pdf and doc files?


upload file(pdf or doc) on ios not just image

Posted: Wed Feb 12, 2014 5:54 pm
by Kartik A

Hi Katya,

Yes I have apps installed on my device(iBooks and Dropbox). When I go to my email and selected a attached pdf/doc I get below options as shown below for loading/opening pdf/doc files but when I do select from my "FileSelector" app it do not show option for iBooks or Dropbook instead provide option to only select photo as show in my previous screen shot.

Image


upload file(pdf or doc) on ios not just image

Posted: Thu Feb 13, 2014 12:40 pm
by Maryna Brodina

Hello! Looks like you can't do that, but if you need to get access to dropbox you can do as shown here https://www.dropbox.com/developers/dr... (if you're working on html5 app) or you can search for PhoneGap plugin which allows you to get access to Dropbox (if you're working on hybryd app).


upload file(pdf or doc) on ios not just image

Posted: Sun Feb 16, 2014 8:53 pm
by Kartik A

Hi Maryna,

I am following the link provided by you to use dropbox. Can you please suggest were to add script tag to include dropbox library.

Usually if we want to include external js library then we could provide the link at Project- App Settings - User Define Resources. But Use Define Resource only accept only src url were could I provide other parameters like id, data-app-key etc.

code
<script type="text/javascript" src="https:&#47;&#47;www&#46;dropbox&#46;com/static/api/2/dropins&#46;js" id="dropboxjs" data-app-key="sjdskjhdjsk"></script>/code


upload file(pdf or doc) on ios not just image

Posted: Mon Feb 17, 2014 5:51 pm
by Maryna Brodina

Hello!
1) Add JS file dynamically using JS code (see example http://stackoverflow.com/questions/95...)
2) Example with adding JS code works for html5 apps only. To make it work in hybrid app use PhoneGap plugin.


upload file(pdf or doc) on ios not just image

Posted: Thu Jul 23, 2015 7:11 am
by taucher

Hello Kartik,

Did you achieve to access Dropbox or IBooks for uploading pdf or doc files?

I have the same problem.