From 7f37e8f56b91a05221b89c92c09806e7a25b2fb0 Mon Sep 17 00:00:00 2001 From: Juan Tejada Date: Tue, 26 Jan 2016 15:44:27 -0800 Subject: [PATCH] Fix in FileUploadsStore --- src/flux/stores/file-upload-store.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flux/stores/file-upload-store.coffee b/src/flux/stores/file-upload-store.coffee index 2664ec8b9..40d9fd5c2 100644 --- a/src/flux/stores/file-upload-store.coffee +++ b/src/flux/stores/file-upload-store.coffee @@ -86,7 +86,7 @@ class FileUploadStore extends NylasStore throw new Error "You need to pass the ID of the message (draft) this Action refers to" _getFileStats: ({messageClientId, filePath}) -> - fs.stat originPath, (err, stats) => + fs.stat filePath, (err, stats) => if err reject("#{filePath} could not be found, or has invalid file permissions.") else