We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please, ensure your title is less than 63 characters long and starts with a capital letter.
tested on only android
- CLI: 6.5.0 - Cross-platform modules: 6.5.15 - Runtime(s): 6.5.0 - Plugin(s): "dependencies": { "@nativescript/theme": "~2.3.0", "@nstudio/nativescript-camera-plus": "^3.0.7", "@nstudio/nativescript-rad-imagepicker": "^2.0.5", "nativescript-background-http": "^4.2.1", "nativescript-cardview": "^3.2.0", "nativescript-cfalert-dialog": "^1.0.15", "nativescript-connectycube": "^3.6.1", "nativescript-download-progress": "^1.3.0", "nativescript-downloadmanager": "^0.1.0", "nativescript-filter-select": "^1.3.0", "nativescript-gif": "^4.0.6", "nativescript-image": "^3.0.12", "nativescript-image-cache-it": "^6.0.0", "nativescript-imagepicker": "^7.1.0", "nativescript-inappbrowser": "^2.3.0", "nativescript-ripple": "^2.2.1", "nativescript-sinch": "^1.1.5", "nativescript-textinputlayout": "^2.0.7", "nativescript-toast": "^2.0.0", "nativescript-ui-listview": "^9.0.1", "nativescript-ui-sidedrawer": "^9.0.2", "tns-core-modules": "~6.5.0" }, "devDependencies": { "nativescript-dev-webpack": "~1.5.0" },
Describe the steps to reproduce it.
const RadImagepicker = require('@nstudio/nativescript-rad-imagepicker').RadImagepicker; var PickerOptions = require('@nstudio/nativescript-rad-imagepicker').PickerOptions; exports.pickImage = function (args) { const radImagepicker = new RadImagepicker(); var myEmail = appSettings.getString("email"); var id = appSettings.getString("chatid"); let opts = { doneButtonTitle: "Send", allowVideoSelection: false, noImagesTitle: "No images here :(", imageLimit: 5 }; radImagepicker.pick(opts).then(selectedImages => { if (selectedImages) { for (let i = 0; i < selectedImages.length; i++) { var file = selectedImages[i]; var url = "http://mvmarket.xyz/backend/designs/sendimage.php?chatid=" + encodeURIComponent(id) + "&sender=" + encodeURIComponent(myEmail); var name = file.substr(file.lastIndexOf("/") + 1); //alert(name); var bghttp = require("nativescript-background-http"); var session = bghttp.session("image-upload"); var request = { url: url, method: "POST", headers: { "Content-Type": "application/octet-stream", "File-Name": name }, description: "Uploading " + name }; var task = session.uploadFile(file, request); task.on("progress", progressHandler); return task; function progressHandler(e) { var toast = Toast.makeText("uploaded " + (e.currentBytes/100000).toFixed(1) + "MB / " + (e.totalBytes/100000).toFixed(1) + "MB"); toast.show(); } } } else { console.log('User pressed cancel'); } }); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Make sure to check the demo app(s) for sample usage
Make sure to check the existing issues in this repository
If the demo apps cannot help and there is no issue for your problem, tell us about it
Please, ensure your title is less than 63 characters long and starts with a capital
letter.
Which platform(s) does your issue occur on?
tested on only android
samsung android 4.3
Please, provide the following version numbers that your issue occurs with:
Please, tell us how to recreate the issue in as much detail as possible.
Describe the steps to reproduce it.
Is there any code involved?
The text was updated successfully, but these errors were encountered: