iOS Phonegap Upload and Download error (cordova js version: 3.8.0) -


i working on project need 2 things:

  1. download media files

  2. upload picture taken camera

in android both works awesome either jelly beans, kitkat or lollipop. in ios both didn't worked.

  1. download media files:

    in android had used download option of file-transfer plugin... , in path had given:

    var fileurl = '/sdcard/'+dynamic_file_name;

    so after download completes can view downloaded file going sdcard in android.

    but in ios tried lot like:

    var fileurl = cordova.file.documentsdirectory+dynamic_file_name; var fileurl = filesystem.root.tourl() + "/"+dynamic_file_name; var fileurl = cordova.file.datadirectory+dynamic_file_name; var fileurl = cordova.file.synceddatadirectory+dynamic_file_name; 

    while using above download complete message when go videos or audio files in device don't see file downloaded (fyi, when try code in simulator, going path downloaded in app, can see file downloaded in device ios don't have such device manager see downloaded file) .

  2. upload image:

    in android sending image binary in start, sending server, wasn't sending ios (data_url)

    then started uploading image server using file-transfer upload plugin , sending image (file_uri), worked perfect again in android ios not sending image server.

    one thing know after camera takes snapshot saved in tmp directory of app don't know why ios not uploading file.


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -