Skip to content

Instantly share code, notes, and snippets.

View noris666's full-sized avatar

Georgiy Trokovets noris666

  • Adaptive Group
  • Kazakhstan, Astana
View GitHub Profile
@noris666
noris666 / upload_snap.js
Created January 5, 2017 19:29 — forked from Tamal/upload_snap.js
React Native File upload using XMLHttpRequest
_uploadSnap() {
var url = 'http://example.com/upload'; // File upload web service path
var photo = {
uri: this.state.picturePath, // CameralRoll Url
type: 'image/jpeg',
name: 'photo.jpg',
};
var formData = new FormData();
formData.append("file", photo);
{
"name": "PDFReader",
"version": "1.0.0",
"description": "Cordova plugin to view PDF files on iOS",
"cordova": {
"id": "com.lesfrancschatons.cordova.plugins.pdfreader",
"platforms": [
"ios"
]
},