input type="file" uploading a file converts the file and uploads the file with size 0

Hi
We are using angularjs in our application and using input type="file" for uploading a document in the user's profile.
The issu is that if the time difference between choosing the file and uploading the file is more than 30 seconds (roughly), then the file details are lost and it is consequesntly stored as an empty document in the database.

directive('fileModelApply', ['$parse', function ($parse) {
  return {
  restrict: 'A',
  link : function (scope, element, attrs) {
  var model = $parse(attrs.fileModelApply);
  var modelSetter = model.assign;

  element.bind('change', function () {
  scope.$apply(function () {
  modelSetter(scope, element[0].files[0]);
  });
  });
  }
  };
}])

We are using the given directive for the part where user chooses the file.
Please let us know if there i any way we can resolve this problem.

Replies

Hi,
We still have not been able to identify a fix fir this and our analysis show that it is a platform issue.
Could you please look into it and let us know a way forward.
Regards,
Aditya Kalyani

Please file a bug on bugs.webkit.org, with reproduction steps that we can use to diagnose your bug. This description is insufficient, and will be very hard for us to debug as-is.