mirror of
https://github.com/apache/cordova-plugin-camera.git
synced 2025-01-31 12:42:50 +08:00
CB-12650: Fix manual test for uploading image
This commit is contained in:
parent
eb98015e8a
commit
a33c35152e
@ -26,7 +26,7 @@
|
|||||||
<name>Cordova Camera Plugin Tests</name>
|
<name>Cordova Camera Plugin Tests</name>
|
||||||
<license>Apache 2.0</license>
|
<license>Apache 2.0</license>
|
||||||
|
|
||||||
<dependency id="cordova-plugin-file" version=">=2.0.0" />
|
<dependency id="cordova-plugin-file-transfer" />
|
||||||
|
|
||||||
<js-module src="tests.js" name="tests">
|
<js-module src="tests.js" name="tests">
|
||||||
</js-module>
|
</js-module>
|
||||||
|
@ -177,7 +177,7 @@ exports.defineManualTests = function (contentEl, createActionButton) {
|
|||||||
ft.onprogress = function (progressEvent) {
|
ft.onprogress = function (progressEvent) {
|
||||||
console.log('progress: ' + progressEvent.loaded + ' of ' + progressEvent.total);
|
console.log('progress: ' + progressEvent.loaded + ' of ' + progressEvent.total);
|
||||||
};
|
};
|
||||||
var server = "http://cordova-filetransfer.jitsu.com";
|
var server = "http://sheltered-retreat-43956.herokuapp.com";
|
||||||
|
|
||||||
ft.upload(pictureUrl, server + '/upload', win, fail, options);
|
ft.upload(pictureUrl, server + '/upload', win, fail, options);
|
||||||
function win(information_back) {
|
function win(information_back) {
|
||||||
|
Loading…
Reference in New Issue
Block a user