javascript - Receiving Error Code 3, http_status null, body null, exception state 2 -
i working on ionic project uploading videos/images.
every time on initial run, uploads without hitch. but, on second file upload , thereafter - receive error:
error: {"code":3,"source":"file:///storage/emulated/0/android/data/com.ionicframework.videocap/files/videolocal.mp4","target":"/upload.php","http_status":null,"body":null,"exception":"state: 2"}
the code such,
var options = new fileuploadoptions(); options.quality=10; options.filekey="file"; options.filename="videodame.mp4"; options.chunkedmode=false; options.mimetype="video/mp4"; options.trustallhosts=true; var headers={'connection':'close'}; options.headers = headers; $cordovafiletransfer.upload("http://76.181.104.114/dame/upload.php", videomp4, options).then(function(result) { console.log("success: " + json.stringify(result.response)); console.log("scopeclipmp4: " + $scope.clip + '.mp4'); }, function(err) { console.log("error: " + json.stringify(err)); }, function (progress) { //console.log("prog:" + progress); }); any appreciated. please ask if info required! thanks!
found solution, had duplicate variable causing second video reference variables first video.
i'm genius, it's whatever.
Comments
Post a Comment