Kartik A
Posts: 0
Joined: Wed Nov 06, 2013 4:16 pm

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

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

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

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

Hello,

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

Kartik A
Posts: 0
Joined: Wed Nov 06, 2013 4:16 pm

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

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.

Kartik A
Posts: 0
Joined: Wed Nov 06, 2013 4:16 pm

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

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?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

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

Hi Kartik,

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

Kartik A
Posts: 0
Joined: Wed Nov 06, 2013 4:16 pm

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

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

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

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).

Kartik A
Posts: 0
Joined: Wed Nov 06, 2013 4:16 pm

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

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

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

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.

taucher
Posts: 0
Joined: Fri Apr 17, 2015 6:06 am

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

Hello Kartik,

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

I have the same problem.

Return to “Issues”