My index page
<div class="list">
<label>Video clip (for peculiar cases)</label>
<label class="item item-input item-stacked-label">
<input type="file" ng-model="image34" name="image34"
id="image34" placeholder=""
onchange="angular.element(this).scope().uploadedFile34(this)" valid-file >
</label>
the uploadedfile34 funcion
$scope.uploadedFile34=function(element)
{
$scope.currentFile34= element.files[0];
var reader = new FileReader();
reader.onload = function(event){
$scope.image_source = event.target.result
$scope.$apply(function($scope){
$scope.files34 = element.files[0];
});
}
reader.readAsDataURL(element.files[0]);
}
i get the files in my insert function this way
$scope.image34=$scope.files34; formData.append("image34", $scope.image34);
before sending data to a PHP serve, Its works perfectly for images but not
videos. I also noticed that the name of the file is sent but not the actual
file itself. Please someone should help me out . Thanks :)
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.