Skip to content

Commit

Permalink
Merge pull request #4 from zenput/windows_missing_filetypes
Browse files Browse the repository at this point in the history
adding file type to images selected on windows
  • Loading branch information
davidofwatkins committed Feb 7, 2018
2 parents 21d1017 + 5165fc0 commit 20cb99d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/windows/ImagePickerProxy.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

var ApplicationData = Windows.Storage.ApplicationData;
var Imaging = Windows.Graphics.Imaging;

Expand Down Expand Up @@ -53,8 +54,8 @@ function getPictures(success, error, options) {

return inputFile.openAsync(Windows.Storage.FileAccessMode.read).then(function (stream) {
inputStream = stream;
return tempFolder.createFileAsync("tmpImage", Windows.Storage.CreationCollisionOption.generateUniqueName);
}).then(function (file) {
return tempFolder.createFileAsync('tmpImage' + fileType, Windows.Storage.CreationCollisionOption.generateUniqueName);
}.bind(this)).then(function (file) {
outputFile = file;
return outputFile.openAsync(Windows.Storage.FileAccessMode.readWrite);
}).then(function (output) {
Expand Down

0 comments on commit 20cb99d

Please sign in to comment.