* change call parameter to comma-separated per filepicker CEO

This commit is contained in:
Seth Call 2013-06-01 20:56:10 -05:00
parent 948fb2f998
commit 0dbb719eb5
1 changed files with 1 additions and 7 deletions

View File

@ -452,15 +452,9 @@ class ApiUsersController < ApiController
# generates a soon-expiring filepicker policy so that a user can only upload to their own folder in their bucket
handle = params[:handle]
convert = params[:convert]
if convert
call = ['pick', 'convert']
else
call = ['pick', 'store', 'convert']
end
call = 'pick,convert,store'
puts "call: #{convert}"
policy = { :expiry => (DateTime.now + 5.minutes).to_i(),
:call => call,
#:path => 'avatars/' + @user.id + '/.*jpg'