Skip to content

Commit

Permalink
Fix root folder issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Lepozepo committed Dec 26, 2015
1 parent 513a20e commit 8e2e06e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/sign_request.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ Meteor.methods
expiration = new Date Date.now() + ops.expiration
expiration = expiration.toISOString()

key = "#{ops.path}/#{ops.file_name}"
if _.isEmpty ops.path
key = "#{ops.file_name}"
else
key = "#{ops.path}/#{ops.file_name}"

policy =
"expiration":expiration
Expand Down

0 comments on commit 8e2e06e

Please sign in to comment.