Home

Awesome

ocaml-cordova-plugin-file-transfer

LGPL-v3 licensed Build Status

Binding to cordova-plugin-file-transfer

Example application.

What does cordova-plugin-file-transfer do ?

This plugin allows you to upload and download files.

This plugin defines global `FileTransfer`, `FileUploadOptions` constructors. Although in the global scope, they are not available until after the `deviceready` event.

Source: cordova-plugin-file-transfer

How to install and compile your project by using this plugin ?

Don't forget to switch to a compiler >= 4.03.0.

opam switch 4.03.0
opam install cordova-plugin-file-transfer
opam pin add cordova-plugin-file-transfer https://github.com/dannywillems/ocaml-cordova-plugin-activityindicator.git

To compile your project, use

ocamlfind ocamlc -c -o [output_file] -package gen_js_api -package cordova-plugin-file-transfer [...] -linkpkg [other arguments]

Don't forget to install cordova-plugin-file-transfer with

cordova plugin add cordova-plugin-file-transfer

How to use ?

See the official documentation cordova-plugin-file-transfer